matplotlib-3d Questions
3
Solved
By default, plotting a set of points (or whatever) in 3D with matplotlib, locates the z axis vertically, as seen here (code below):
I need to interchange the z and y axis, so that that y axis is...
Kiernan asked 15/1, 2016 at 14:7
4
Solved
I am currently have a nx3 matrix array. I want plot the three columns as three axis's.
How can I do that?
I have googled and people suggested using Matlab, but I am really having a hard time with u...
Maddalena asked 31/12, 2009 at 15:37
8
Solved
I am having trouble with axes labels overlapping ticks labels in matplotlib. I've tried to reposition the labels "manually" by applying transforms or by calling set_y(), but no avail.
Here's a sni...
Transubstantiate asked 2/4, 2011 at 20:50
4
Solved
I'm trying to plot a 3d surface where each of the three dimensions in a separate array of values and the colouring of the surface at each coordinate is a function of x,y,z. A sort of numpy.pcolorme...
Springclean asked 8/9, 2015 at 15:15
5
Solved
I'm learning how to use mplot3d to produce nice plots of 3d data and I'm pretty happy so far. What I am trying to do at the moment is a little animation of a rotating surface. For that purpose, I n...
Zahavi asked 15/10, 2012 at 22:25
2
I'm trying to visualise a dataset in 3D which consists of a time series (along y) of x-z data, using Python and Matplotlib.
I'd like to create a plot like the one below (which was made in Python: ...
Nadinenadir asked 22/9, 2017 at 13:53
2
Solved
I can't seem to find documentation regarding the ability to scale axes in a 3d image using matplotlib.
For example, I have the image:
And the axes have different scales. I would like them to be ...
Louisalouisburg asked 2/7, 2012 at 20:24
2
Solved
I can't find a way to draw errorbars in a 3D scatter plot in matplotlib.
Basically, for the following piece of code
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
fig = pl...
Beige asked 7/10, 2014 at 21:16
7
Solved
I have this so far:
x,y,z = data.nonzero()
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
ax.scatter(x, y, z, zdir='z', c= 'red')
plt.savefig("plot.png")
Which creates:
What I'...
Poppy asked 13/5, 2015 at 18:58
3
I am trying to make a 3-dimensional surface plot for the expression: z = y^2/x, for x in the interval [-2,2] and y in the interval [-1.4,1.4]. I also want the z-values to range from -4 to 4.
The p...
Sd asked 6/2, 2011 at 12:34
5
Solved
I have written code to plot a 3D surface of a parabaloid in matplotlib.
How would I rotate the figure so that the figure remains in place (i.e. no vertical or horizontal shifts) however it rotates...
Pinzler asked 12/7, 2016 at 11:0
2
Solved
I am trying to 'paint' the faces of a cube with a contourf function using Python Matplotlib. Is this possible?
This is similar idea to what was done here but obviously I cannot use patches. Simil...
Genome asked 16/3, 2016 at 20:31
2
Solved
Borrowing from the example on the Matplotlib documentation page and slightly modifying the code,
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
def ran...
Vola asked 31/3, 2011 at 4:50
9
Solved
I have a list of 3-tuples representing a set of points in 3D space. I want to plot a surface that covers all these points.
The plot_surface function in the mplot3d package requires as arguments X,...
Coot asked 7/2, 2012 at 4:2
2
Solved
I want to plot two planes and find their intersection line, but I get this result, where it's impossible to tell where they intersect, because one plane overlays the other.
A 3D projection s...
Extradite asked 5/12, 2013 at 18:35
3
Solved
How could I plot the following data in 3 dimensions? (apparently, there are more than that!)
data = [[10, 10, 0.84496124031007758],
[10, 20, 0.87209302325581395],
[10, 30, 0.88139534883720927],
...
Jerryjerrybuild asked 9/10, 2013 at 19:23
6
Solved
(Mac OSX 10.10.5)
I can reproduce from the matplotlib website mplot3d the example code for a 3D scatter plot scatter3d_demo.py, however the plot renders as a static image. I can not click on the g...
Excavate asked 30/10, 2015 at 12:40
2
Solved
How can I make a 3D plot without showing the axes?
When plotting a 3d plot, Matplotlib not only draws the x, y, and z axes, it draws light gray grids on the x-y, y-z, and x-z planes. I would like ...
Calliper asked 7/9, 2011 at 15:59
1
Solved
How can we make spheres of radius R centered at given coordinates(x,y,z). Like if there are 10 set of coordinates for the centers of the spheres and correspondingly 10 different values of the radii...
Overage asked 3/11, 2020 at 4:47
2
I have been searching for 3D plots in python with seaborn and haven't seen any. I would like to 3D plot a dataset that I originally plotted using seaborn.pairplot. Can anyone help me with these 2 i...
Ase asked 11/9, 2018 at 22:44
1
I am using Python and matplotlib and I am trying to create an interactive plot in Google Colab. I can produce the plot but it is static. My current code is below:
%matplotlib notebook
%config Inlin...
Ive asked 3/10, 2020 at 14:20
2
I've generated a 3D plot with python and pyplot. I am able to export this plot to PDF. Which is quite boring and sometimes.. Flat 3D plots can be hard to read/understand.
However, PDF supports inte...
Cedell asked 19/2, 2016 at 15:16
3
Solved
I search how to plot something with less instruction as possible with Matplotlib but I don't find any help for this in the documentation.
I want to plot the following things:
a wireframe cube ce...
Bactericide asked 21/6, 2012 at 14:15
2
I'm trying to plot cuboids of different sizes using matplotlib, such that: after rotation the cuboids do not overlap visually in a non-physical way, the cubes have different colors and a box drawn ...
Refined asked 14/3, 2018 at 12:25
2
Solved
I want to make 3D animation with matplotlib, but I don't know how to. Here is my non-working code.
from matplotlib import pyplot as plt
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
f...
Chally asked 30/6, 2016 at 9:8
© 2022 - 2024 — McMap. All rights reserved.