Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
James's user avatar
  • 1
2 votes
1 answer
82 views

How to get a surface plot to sync with the associated scatter points

I have a simple problem, wherein I have a training set of 80 points and a testing set of 20 points, which I am plotting against their corresponding values of bearing stress on the z axis, where the x ...
atharvanaik's user avatar
0 votes
1 answer
1k views

How does the x,y,z in `plot_surface` work

I am trying to figure out how to work with the input data for pyplot's plot_surface, as it is quite confusing. For a start the y-axis does not represent height as I am used to with geometrics. There ...
n247s's user avatar
  • 1,912
0 votes
1 answer
303 views

Need help making a 3D surface plot a 4D surface plot with color as separate dimension

As the title says. I have tried so many different ways of doing this. I have 4 vectors of length 48. X: [ 25 25 25 25 25 25 50 50 50 50 50 50 75 75 75 75 75 75 100 100 100 100 100 ...
darrahts's user avatar
  • 403
1 vote
0 answers
52 views

How to plot one surface over another

so for my research on rattleback, I've been plotting the ellipsoid(rattleback) and now I need additional vectors to be plotted. For example, the basic vectors. My code looks like this: " import ...
alygg's user avatar
  • 11
1 vote
0 answers
104 views

How can I prevent the offset multiplier in plot_surface from exceeding figure limits?

I am using matplotlib to created 3d plots using plot_surface but ran into the issue that when scientific notation is needed, the multiplier is offset to the point that it no longer appears in the ...
Cesar Carrasco's user avatar
2 votes
2 answers
298 views

How to plot a surface plot from pandas columns

I am trying to make an evaluation of my area measurement. However, I can't get it to make an area from the points (Position_x, Position_y, Position_z) from a CSV file. I always get the error: ...
rene's user avatar
  • 99
0 votes
1 answer
52 views

Display the area in common between two surfaces

I have the following code, that generates a paraboloid and delivers the part of the area above a lower limit, or below an upper limit, as shown here Those results are obtained with the following ...
aheuchamps's user avatar
2 votes
2 answers
421 views

Color of a point-made 3D surface

I have a set of 4D data (3D points + 1D value). Let's call them X,Y,Z and C. I would like to generate a surface from the X,Y,Z points and then colour it according to the C values. I think I'm asking ...
puccj's user avatar
  • 121
1 vote
1 answer
176 views

Plotting a sphere in 3D space with the surface colour determined by another variable

I am trying to create a 3D plot in python to display a sphere where the surface colour indicates the value of a potential on the surface. The potential is dependent on the value of theta. Right now my ...
Ezzy Cross's user avatar
0 votes
1 answer
400 views

Plot surfaces like a box in 3D

I would create a surface box using these boundary points with fraction points. I am confused when I want to plot the surface using ax.plot_surface(), and this is my code: import numpy as np ...
Bayu Setiawan's user avatar
0 votes
1 answer
118 views

Add contour plot to base of surface plot

So I've produced a 3-d graph on python using trisruf: ax.plot_trisurf(x,y,z) and I end up with the following: 3d plot So now I want to plot contours on the base of this same plot, When I tried using ...
Kish Kharka's user avatar
2 votes
1 answer
382 views

How can I make an animation of a surface with a high fps number?

I have the following code in python to convert a plot into an animation. import numpy as np import matplotlib.pyplot as plt from matplotlib import cm from matplotlib.animation import PillowWriter fig,...
AmolosRicha1's user avatar
1 vote
1 answer
525 views

How to plot the rotation of a curve along the x-axis

I would like to plot the line: (x^2)/11.39 + (y^2)/6.25 = 1 rotated around the x-axis for a project I am working on. I have used matplotlib to graph some 3D planes before but am unable to figure out ...
ArduinoBen's user avatar
1 vote
1 answer
2k views

3D plot using equation with x and y

I'd like to create a 3D plot from an equation with x and y, similar to Google's 3D graph. An example: input: sin(sqrt(x**2 + y**2)) output (3D plot): The Z will obviously be equal to the given input, ...
Itzsten's user avatar
  • 84

15 30 50 per page