scatter3d

3D Scatterplot in Python using strings instead of values

3D Scatterplot in Python using strings instead of values Question: I need to make a 3d plot, where the axes will have labels in string instead of values. So I have 3 lists, the same size, and I need to have the first element of the first list to be my X coordinate, the first …

Total answers: 1

How to show legend in Pyplot Scatter 3D

How to show legend in Pyplot Scatter 3D Question: I am making a Scatter 3D pyplot using arrays with float numbers x = c_icrs.galactic.cartesian.x.value y = c_icrs.galactic.cartesian.y.value z = c_icrs.galactic.cartesian.z.value Where x,y,z are: x:array([ -65.1525587 , -1.76919179, 3.87621068, -193.69267564, -8.49586587]) y:array([ 99.25870537, -1.91258061, 1.04225814, -96.36986244, 9.24999572]) z:array([ 59.09744472, -0.40753885, 10.51755917, -64.43345929, 21.251354 ]) The plot: …

Total answers: 1

Truncated figure with plotly

Truncated figure with plotly Question: I am facing a problem with the Scatter3d from plotly: the figure is always truncated at the bottom: I create the plot via plotly.express this way: fig = px.scatter_3d(BFM_pcaFull, x=0, y=1, z=2, color=3) with BFM_pcaFull being the pandas.DataFrame where the data are stored. I tried to create the plot via …

Total answers: 1

Python: Animated 3D Scatterplot gets slow

Python: Animated 3D Scatterplot gets slow Question: My program plots the positions of particles in my file for every time step. Unfortunately it gets slower and slower although I used matplotlib.animation. Where is the bottleneck? My data file for two particles looks like the following: # x y z # t1 1 2 4 # …

Total answers: 2