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

How to not show the axes planes (xy, yz and xz) in mplot3d?

I want my plot to look like this without those walls of planes: But when I use mplot3d, I get this: How to I remove the walls at the edges?
0
votes
1 answer

Get mappings of all possible three-dimensional visualisations with python

I have a dataframe with five columns. I have written a code for three-dimensional scatter for three columns from it: from mpl_toolkits import mplot3d %matplotlib inline import numpy as np import matplotlib.pyplot as plt fig = plt.figure() ax =…
user13467695
0
votes
0 answers

Matplotlib 3D saving blank image, plt.show() not in code

I'm writing a plotting code for a 3D plot in matplotlib and I was originally trying to scale the axes so that the x and z axes were scaled larger than the y-axis. When I tried to make these edits, however, plt.savefig() started saving a blank image.…
0
votes
1 answer

Use an image as a background in a matplotlib 3D plot

I'm trying to emulate the earth going around the sun using matplotlib with Axes3D, and I thought that it could be great if I can a Stary nightsky as background. I looked up a bit on the internet and came across "imshow" but it doesn't seem to work…
0
votes
1 answer

plot 4 vars in a 3D plot + heatmap

I have 4 columns in a dataframe which I would like to see whether there is a correlation. I thought it could give me some insight by ploting them in a 3D plot and then adding the 4th dimension as a heatmap, but I have no ideia how to add this…
Bruno Takara
  • 11
  • 1
  • 6
0
votes
1 answer

Read csv file and plot in pyplot mplot3d

I have a csv file with a grid of z values corresponding to x in [1,2,3,4] and y in [1,2,3] like this: 1.1,1.2,1.3 2.1,2.2,2.3 3.1,3.2,3.3 4.1,4.2,4.3 I want to make a 3D scatterplot using mplot3d. What is the right way to read the file and make a…
Stepan
  • 1,391
  • 18
  • 40
0
votes
1 answer

plot interpolated surface in python

I have a 4x4 matrix (test4x4) which I want to interpolate it to a 8x8 matrix (test8x8). I used interpolate.interp2d for interpolation, but when I plot it (test8x8), it does not seem like test4x4 plot. Where do I mistake? import numpy as np from…
tahami
  • 38
  • 9
0
votes
1 answer

Problem when plotting a two-dimensional summation function

I am currently carrying out a project on antenna group theory. I started developing the theory on shaped patterns from a continuous planar aperture distribution. The next step was to develop this theory on a discreet number of radiating elements. We…
yakilemapa
  • 11
  • 1
0
votes
0 answers

Making mesh skin transparent?

I wonder if mplot3d provides a way to alter the opacity of mesh face colors. Below is a simple example for creating a 3Dplot using mplot3D and marching_squares method. import matplotlib.pyplot as plt from mpl_toolkits.mplot3d.art3d import…
McM
  • 471
  • 5
  • 21
0
votes
1 answer

Python surface plotting

I have following table data(Please see the image) for which I want to have a surface plot in python. Using surface plotting from matplotlib, import matplotlib.pyplot as plt from matplotlib import cm from matplotlib.ticker import LinearLocator,…
0
votes
1 answer

How to save a triangular mesh in python

I have a set of vertices and triangular faces, which together form a triangular mesh: import numpy as np verts = [[0.1, 1., 1. ] [1., 1., 0.1] [1., 0.1, 1. ] [1., 1., 1.9] [1., 1.9, 1. ] [1.9, 1., 1. ] ] faces = [[ 2, 1, 0] [ 0, 3,…
McM
  • 471
  • 5
  • 21
0
votes
1 answer

FuncAnimation doesn't respond when after dynamically sending data to plot to move a scatter point

So I'm using FuncAnimation from matplotlib so dynamically plot some data as it arrives from a serial port (in my project is the vehicle class from dronekit, which is displayed with the green dot), what I have basically is the animation called which…
0
votes
0 answers

3D plot of 2D pandas data frame - z-axis limits, interactivity

I Posted this question about 3D plots of data frames: 3D plot of 2d Pandas data frame and the user referred me very very helfully to this: Plotting Pandas Crosstab Dataframe into 3D bar chart It use useful and the code worked in principle, but it…
ISquared
  • 364
  • 4
  • 22
0
votes
1 answer

mplot3d (python) why plotting a line in 3d the coordinates need the metod flatten

I'm starting to learn python and the related graphical library. After some experience in 2D I started to use 3D. What I would like to do is plotting a circle in 3D. I report a minimal example import numpy as np import matplotlib.pyplot as plt from…
arkkimede
  • 105
  • 1
  • 12
0
votes
1 answer

Unable to plot polar point it in 3D matplotlib using python

I have a continuous int array of polar points and I want to plot it in 3D. I heard about mplot3d and point cloud localization but I don't know how to use/implement it in my code. "[3085, 3084, 3075, 3068, 3069, 3051, 3049, 3042, 3037, 3039, 3028,…