Questions tagged [mplot3d]

a 3D plotting toolkit which ships with the matplotlib Python plotting library.

The mplot3d toolkit adds simple 3D plotting capabilities to the plotting library.

Resources

391 questions
0
votes
1 answer

Drawing history of a point in a 3Dplot animation in Matlab

I have a few 3D points in Matlab and i have made an animation from these points using plot3. The points are stored in arrays and then some of them are joined with lines. The code is as follows: tstart = 0.0; tend = 5; tsim = tend - tstart; dt =…
0
votes
1 answer

Move 3D plot to avoid clipping by margins

I'm trying to figure out how I can get the 3D matplotlib images below to plot higher on the canvas so it doesn't get clipped. Here is the code I'm using to create the plot. I couldn't find a way to attach the text file containing the Z elevations…
user2256085
  • 483
  • 4
  • 15
0
votes
4 answers

What is missing for a better MATLAB Plot3 visualization?

I have produced the following figure using MATLAB plot3 function. This figure is not good. Because, I think, it's too hard for readers to estimate the coordinates from this figure. Points height (Z value) is too hard to be estimated from the…
Hesham Eraqi
  • 2,444
  • 4
  • 23
  • 45
0
votes
1 answer

Draw surface in Python

I have regular mesh which I want to draw. I used plot_surface, but the result is a bit strange. Could you help with drawing? I've tried to change limit for axes but it didn't help. May be you could suggest better way for drawing points as surface.…
Vladimir
  • 21
  • 8
0
votes
1 answer

How to fill mplot3d bar plot depth? [Python 3.x]

There is an example for how to build a bar plot at the bottom of this question taken from the matplotlib site. I cannot find a parameter to increase the depth of each bar. I want depth to give it a 3d look like this picture. Is there a function…
zwelz
  • 435
  • 3
  • 11
0
votes
1 answer

Change matplotlib demo to use csv file with X Y Z data

I would like to use matplotlib to create a scattered 3d plot with a projected surface that looks like this demo but using a CSV file that I created from excel that has the X Y Z data in 3 columns of numbers. Here is the demo code ... from…
matt12
  • 11
  • 1
0
votes
1 answer

How to improve responsiveness of ipython interact for matplotlib 3D plot

Python 2.7.9, matplotlib 1.4.0, ipython 2.3.1, macbook pro retina I am using ipython's interact() with a 3D plot in an ipython notebook, but find that the graph updates too slowly when changing a slider control. Here is example code that has this…
alwaysCurious
  • 523
  • 5
  • 14
0
votes
1 answer

Change color of 3D scatterplot each iteration

#3d dynamic scatterplot import numpy as np from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes3D import time plt.ion() fig = plt.figure() ax = fig.add_subplot(111, projection='3d') s=0 a=1 b=2 for i in range(0, 10): …
Radhika
  • 29
  • 1
  • 6
0
votes
1 answer

Setting edgecolor to match facecolor in trisurf

I am trying to use python3 and matplotlib (version 1.4.0) to plot a scalar function defined on the surface of a sphere. I would like to have faces distributed relatively evenly over the sphere, so I am not using a meshgrid. This has led me to use…
0
votes
1 answer

Is there a possibility to draw several cylinders or tubes in a matlab figure

I have 3-D plot in matlab and it contain several lines. I want to draw cylinder or hollow tubes around those line. Is someone has experience of plotting several cylinder in 3-D plot?
User1551892
  • 3,236
  • 8
  • 32
  • 52
0
votes
2 answers

plotting graphs in numpy, scipy

I have x1, y1, z1 coordinated at time t1 and I have x2, y2, z2 coordinates at time t2. I want to plot the graph for them. I have all numpy arrays. A = [[44.254 44.114 44.353 44.899 45.082] [-0.934 0.506 1.389 0.938 0.881] [44.864 45.225 …
sam
  • 18,509
  • 24
  • 83
  • 116
0
votes
0 answers

Matplotlib polycollection in mplot3d

I am making a plot as in: http://matplotlib.org/examples/mplot3d/polys3d_demo.html but in the example they declare: ys[0], ys[-1] = 0, 0 so that the polygons have a point on the x,y plane. My data does not have zeros at the end points. So, when I…
Cokes
  • 3,743
  • 6
  • 30
  • 41
0
votes
1 answer

Odd line artefacts appearing in matplotlib mplot3d plot using PolyCollection

I am using the mplot3d example which uses PolyCollection for stacking XY-plots, http://matplotlib.org/examples/mplot3d/polys3d_demo.html However, I am seeing some strange line artefacts in the plots. How can I remove the horizontal lines which…
Daniel Farrell
  • 9,316
  • 8
  • 39
  • 62
0
votes
1 answer

mplot3d: how to show the ticks but not the grids?

I want to show the axis ticks with matplotlib/mplot3d but not the faint grids on the x/y/z background: Is there a way to suppress the grids?
Jason S
  • 184,598
  • 164
  • 608
  • 970
0
votes
1 answer

Python : error while plotting 3d graph from 3 arrays

I have three equal-length arrays named ra, ma and op with mostly numbers and few instances when they have 'nan' or 'None' in place of a number. Eg: ra = [0, 1, 2, nan, 8 , 3, 8, 5] ma = [3, nan, 5, 8, 9, 6, 4, 10] op = [7, None, 7, 9, 3, 6, None,…
Panchi
  • 551
  • 4
  • 7
  • 17