Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7193237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:07:43+00:00 2026-05-28T20:07:43+00:00

I have to plot data which is in the following format : x =

  • 0

I have to plot data which is in the following format :

x = range(6)
y = range(11)

and z depends on x, y

For each value of x, there should be a continuous curve that shows the variation of z w.r.t y and the curves for different values of x must be disconnected

I am using mplot3d and it is not very clear how to plot disconnected curves.

This is what it looks like using bar plots.
enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T20:07:44+00:00Added an answer on May 28, 2026 at 8:07 pm

    You could overlay multiple plots using Axes3D.plot:

    import matplotlib.pyplot as plt
    import mpl_toolkits.mplot3d.axes3d as axes3d
    import numpy as np
    
    x = np.arange(6)
    y = np.linspace(0, 11, 50)
    z = x[:, np.newaxis] + y**2
    
    fig = plt.figure()
    ax = fig.add_subplot(1, 1, 1, projection = '3d')
    for xval, zrow in zip(x, z):
        ax.plot(xval*np.ones_like(y), y, zrow, color = 'black')
    plt.show()
    

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following data set that I am trying to plot with ggplot2,
I have data that is mostly centered in a small range (1-10) but there
I have the following code which lets the user plot two points on a
I have the following function, which I would like to plot using ggplot: f(x)
I have data in a csv file in the following format ,BC1,BC10,BC11 1,2432,420,18 2,276,405,56
I have data in a csv file in the following format 0,q20,q25,q30 0,32821,2270,68 1,105586,11366,38
I have the following part of a data frame which is much bigger than
I have some data plotted which includes some limits on each subplot: Both axes
I have data-set represented as latitude-longitude and a VALUE(named class) associated with each latitude-longitude
I have a data.frame called series_to_plot.df which I created by combining a number of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.