388 questions
-6
votes
0
answers
40
views
Shaded closed surface 3d in matplotlib [closed]
I am trying to reproduce this figure in Matplotlib
While generating the data and plotting it using trisurf is straight forward I am have some difficulty to figure out how the tube like diagram is ...
0
votes
0
answers
44
views
How to prevent 3D Matplotlib axis extension past set_[x/y/z]lim()? [duplicate]
I have an issue where the 3D axis limits set in Matplotlib are not respected in the plot, as shown by the minimal working example below. It can be seen that the extent of the plot goes beyond zero, ...
0
votes
0
answers
41
views
How do I clearly combine a 3D scatter plot and a surface plot together?
I think my problem is fairly simple. I've managed to find a way to plot my 3D surface against a set of discrete data points, but the issue now is that it is not clear to see whether the points lie ...
1
vote
0
answers
57
views
Python - XYZ plot coloring cluster region
Current this is my code for XY axis:
import numpy as np
import matplotlib.pyplot as plt
def plot_with_tricontourf_customized(dfs, figures_organizer, figsize_setting, list_points_mean, ...
0
votes
1
answer
53
views
How to display minor ticks without gridlines on the z axis?
I want to display the minor z ticks on an Axes3D plot without minor gridlines.
The starting figure looks like this:
The code is here:
import numpy as np
import matplotlib
from matplotlib.figure ...
2
votes
2
answers
60
views
How to turn off gridlines from 3d axes?
How do I turn off the major x axis grid from this axes?
This code below works on 2d plots to hide the major x gridlines. On 3d plots it doesn't seem to do anything.
I prefer to use general axes ...
0
votes
0
answers
25
views
How can I recreate these 3D vector plots of a rotating vector using matplotlib?
I want to recreate figures like this by using Matplotlib, how would I do so?
The second figure is hard to create using drawn lines; I'd like a helical spiral from the tip of the vector along z', so ...
0
votes
0
answers
41
views
3d Bar Plot in Matplotlib: "floating" bars and other issues
I have latitude and longitude coordinates in UTM with some data associated with them in a .csv file.
I want to make a 3d bar graph with the height's representing an area's associated data value. I ...
0
votes
0
answers
20
views
3D surface in matplotlib.pyplot does not correspond to data
I am trying to plot a simple 3D surface (just for testing). It appears to me that the surface does not correspond with the data matrix (defined as the sum of two input vectors using the Numpy add....
0
votes
1
answer
32
views
Extend a 3d plot to the edge of a figure with matplotlib
The following code results in a figure saved with large white spaces around it, while there is enough space to stretch the axes.
import matplotlib.pyplot as plt
import numpy as np
X = np.arange(-5, 5,...
1
vote
1
answer
67
views
matplotlib 3D line plot
I am trying to plot a two series of data in 3d as lines but cant find a good example of how to structure the data to do this in python.
My example data is:
x = np.array([[1,1,1,1,5,1,1,1,1], [4.5,5,5,...
1
vote
1
answer
69
views
Plot a partially transparent plane in matplotlib
I want to plot a sequence of three colormaps in a 3D space, with a line crossing all the planes of the colormaps, as shown in the figure below.
https://i.sstatic.net/65yOib6B.png
To do that, I am ...
0
votes
1
answer
66
views
How to draw grid planes uniformly using matplotlib?
Basically I have this code:
import matplotlib.pyplot as plt
import numpy as np
from itertools import product, combinations
fig = plt.figure()
ax = fig.add_subplot(1,1,1,projection='3d')
but that ...
1
vote
1
answer
103
views
Creating a 3d Bar Chart in Python
I tried to replicate the following code to create 3D bar charts:
https://pythonprogramming.net/3d-bar-chart-matplotlib-tutorial/
The idea behind the code below is to compute the Likelihood ratio of ...
0
votes
1
answer
63
views
how to fix import matplotlib.pylot as plt can't be recognized I've checked everything and verified that it is installed [duplicate]
ImportError: DLL load failed while importing _cext: The specified module could not be found.
It says that it fails to import the matplotlib.pyplot as plt.
I've checked the Matplotlib uninstalled and ...