matplotlib-3d Questions
4
Solved
I want to be able to see lines (and points) that are ON THE 3D SURFACE on top of the surface (second image), not behind (first image).
This is my 3D function:
def f(x, y):
return np.sin(2*x) * ...
Hammonds asked 31/3, 2018 at 9:43
4
Solved
I m trying to plot simultaneously a plane and some points in 3D with Matplotlib.
I have no errors just the point will not appear.
I can plot at different times some points and planes but never at s...
Hibernate asked 17/3, 2016 at 12:44
4
Solved
I have a 3d plot of lines generated by matplotlib. I want to overlay an image at a specific xy (or yz, xz) slice. How do I do that using python? Thanks.
I have a simple 3d plot code as:
fig = plt...
Whitebook asked 26/11, 2012 at 17:46
2
I'm trying to move the spines in a 3D matplotlib axes object.
This seems like a really simple issue, but I have not found any questions/answers that address this directly. I've included a list of ...
Ford asked 25/1, 2018 at 12:18
2
Solved
I was unsuccessful browsing web for a solution for the following simple question:
How to draw 3D polygon (say a filled rectangle or triangle) using vertices values?
I have tried many ideas but all ...
Shipyard asked 7/1, 2011 at 2:38
4
Solved
I have a 3-dimensional numpy array. I'd like to display (in matplotlib) a nice 3D plot of an isosurface of this array (or more strictly, display an isosurface of the 3D scalar field defined by inte...
Remiss asked 17/5, 2011 at 11:27
8
Solved
I'd like to plot implicit equation F(x,y,z) = 0 in 3D. Is it possible in Matplotlib?
Gitagitel asked 13/1, 2011 at 13:25
3
Solved
I have some x and y data, with which I would like to generate a 3D histogram, with a color gradient (bwr or whatever).
I have written a script which plot the interesting values, in between -2 and...
Macey asked 18/9, 2018 at 11:11
11
Solved
When I set up an equal aspect ratio for a 3d graph, the z-axis does not change to 'equal'. So this:
fig = pylab.figure()
mesFig = fig.gca(projection='3d', adjustable='box')
mesFig.axis('equal')
mes...
Ezechiel asked 3/12, 2012 at 14:33
7
Solved
I just installed matplotlib and am trying to run one of there example scripts. However I run into the error detailed below. What am I doing wrong?
from mpl_toolkits.mplot3d import axes3d
import m...
Selfdeceit asked 28/9, 2010 at 8:15
3
I have some mpl_toolkits.mplot3d surface plots that I am viewing from different angles. When viewed from directly above (elev = 90, azim = 90) the text of the z-axis is all piled up on top of itsel...
Lozengy asked 12/9, 2012 at 15:8
3
Solved
I spent last few days trying to find a way to remove tiny margins from axes in a 3D plot. I tried ax.margins(0) and ax.autoscale_view('tight') and other approaches, but these small margins are stil...
Hibernia asked 10/5, 2013 at 17:59
2
Solved
How to plot a imshow() image in 3d axes? I was trying with this post. In that post, the surface plot looks same as imshow() plot but actually they are not. To demonstrate, here I took different dat...
Buchheim asked 26/5, 2015 at 16:29
2
Solved
Basically I have two 3d axes in one figure, one animated built through matplotlib.aninmation and one 3d line plot, side by side. I'd like to add functionality so that when you rotate one axis, the ...
Purism asked 15/12, 2016 at 14:58
5
Solved
Short question
How can matplotlib 2D patches be transformed to 3D with arbitrary normals?
Long question
I would like to plot Patches in axes with 3d projection. However, the methods provided by ...
Fettle asked 14/8, 2013 at 10:13
2
Solved
Based on the matplotlib example code I constructed a 3D version of a multicolored line. I am working in a jupyter notebook and by using %matplotlib notebook I may zoom into the plot and the corner ...
Azaria asked 28/6, 2016 at 14:43
1
Solved
I want to write a program that takes in strings representing functions, such as "x^2+y^2+z^2=30" and plot it in matplotlib. I want my program to be able to handle general cases. Previousl...
Samy asked 27/4, 2023 at 0:3
2
Solved
This question explains how to change the "camera position" of a 3D plot in matplotlib by specifying the elevation and azimuth angles. ax.view_init(elev=10,azim=20), for example.
Is there a simila...
Shinshina asked 8/9, 2016 at 12:8
7
I use Jupyter Notebook to make analysis of datasets. There are a lot of plots in the notebook, and some of them are 3d plots.
I'm wondering if it is possible to make the 3d plot interactive, so I ...
Gio asked 14/7, 2016 at 2:11
1
I was wondering how it is possible to interactively rotate a 3D plot as described in this video (if you decide from above or underneath or from right or left). I can generated a 3D plot in sp...
Homestretch asked 23/4, 2018 at 12:38
1
Solved
I am working on an animation of a 3D plot using mpl_toolkits.mplot3d (Matplotlib 3.6.3) and need to set the view distance.
It seems that earlier versions of Matplotlib allowed the elevation, azimut...
Tripos asked 17/1, 2023 at 12:50
12
Solved
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
Setting the aspect ratio works for 2d plots:
ax = plt.axes()
ax.plot([0,1], [0,10])
ax.set_aspect('equal', 'box')
But it do...
Repressive asked 15/11, 2011 at 2:35
3
Solved
How can I combine a 3D scatter plot with a 3D surface plot while keeping the surface plot transparent so that I can still see all the points?
Egidius asked 5/3, 2013 at 17:9
3
I am looking for help in plotting a (variable) number of filled contours onto a 3D plot. The rub is that the points need to be correctly geo-referenced. I have got the 2D case working, using Cartop...
Ammonia asked 15/1, 2018 at 18:46
3
Solved
I plotted the eigenvectors of some 3D-data and was wondering if there is currently (already) a way to put arrowheads on the lines? Would be awesome if someone has a tip for me.
import numpy as np...
Tedra asked 4/4, 2014 at 16:0
1 Next >
© 2022 - 2024 — McMap. All rights reserved.