Questions tagged [scatter3d]

Three-Dimensional Scatterplots and Point Identification

The scatter3d function uses the rgl package to draw 3D scatterplots with various regression surfaces. The function identify3d allows you to label points interactively with the mouse: Press the right mouse button (on a two-button mouse) or the centre button (on a three-button mouse), drag a rectangle around the points to be identified, and release the button. Repeat this procedure for each point or set of “nearby” points to be identified. To exit from point-identification mode, click the right (or centre) button in an empty region of the plot.

244 questions
3
votes
0 answers

What is the difference between scatter and scatter3D in matplotlib?

As long as projection is set to 3d in the call to add_subplot or axes, such as ax = fig.add_subplot(projection='3d'), both scatter and scatter3D plot a 3D plot. So what is the point of using scatter3D?
John S
  • 71
  • 3
3
votes
1 answer

Draw an arrow between two specific points in a 3d scatter plot with plotly graph objs

I have a chain of balls. On each ball I have an arrow. I want to represent the above graphic with plotly,such that I can rotate it, but I am completely lost. How can I position an arrow on the ball? I started to first 4 arrows as follows: import…
Suslik
  • 929
  • 8
  • 28
3
votes
1 answer

changing colors in plotly scatter3D

I have created the following 3d scatter plot using plotly in R. For this I used the following code The data setTxy, just contains the x,y,z coordinates of each marker and a value between 0-1.5 for each coordinate point (in a column with name…
Jan
  • 67
  • 1
  • 6
3
votes
0 answers

How to create Time Slider for Plotly Scatter3d?

I am using plotly in Jupyter Notebook with Python to generate multiple 3D plots. All the data exists as points and thus is plotted with Scatter3d. I am trying to add a time slider to this 3D data like this 2D example here: 2D Time Slider…
yourboyjoe
  • 41
  • 2
3
votes
0 answers

How to plot all of huge data points in scatter3d of plot_ly?

I have a data.frame named as z, which has 4 millions data points to make scatter3d plot by using plot_ly as follows. p <- plot_ly(z, x = ~Lon, y = ~Lat, z = ~z, mode = 'markers', marker = list(color = "black",size = 2,…
imtaiky
  • 191
  • 1
  • 12
3
votes
0 answers

How to include subscript in axis labels of a scatter3D plot in R

I want to make a scatter 3D Plot with PC_1 and PC_3 (subscripts) as labels of the x- and z-axis. I would usually do it with expression(PC[1]) but it doesn't work. I just can't find a way to solve the problem. library(plot3D) par(mar = c(4, 0, 3.2,…
Zerg
  • 31
  • 1
3
votes
1 answer

How can I make a chart title go over multiple lines and be left-justified in plotly?

I'm creating a 3D scatterplot in plotly and want to have a title that is a few sentences long (in order to describe the figure), with the title left-justified, not interfering with the figure itself, and not being cut off by the plot area. The code…
Sam
  • 99
  • 1
  • 9
3
votes
2 answers

How to update a scatter3 plot (in a loop) in Matlab

Quite a simple question but just couldn't find the answer online... I want to visualise a point cloud gathered from a lidar. I can plot the individual frames but wanted to loop them to create a "animation". I know how to do it for normal plots with…
Jack Hayton
  • 363
  • 4
  • 18
3
votes
1 answer

Exporting matplotlib 3d scatter plot as html, possible?

Wish to have interactive 3D Scatter plot in browser. The plot is built using matplotlib and should be saved as html. Closest solution found is mpld3 library, but it works only for 2d scatter plot and not 3d. Plotly is ruled out it has restrictions…
3
votes
0 answers

Lighting in 3D matplotlib scatterplot

I have a point cloud that looks like ...a cloud. It has bulging features in some places, and "creases" in other places. To illustrate my issue, I've attached a sample image below (the script used to create the first point cloud is at the…
AaronJPung
  • 1,105
  • 1
  • 19
  • 35
3
votes
1 answer

Alternative to abline for scatterplot3d?

Is there an alternative to 'abline' for 3D scatterplot? I'm using 'scatterplot3d' package. The blue line in the image is what I want to do. If I add a 'surface', then it will block the original plot.
user67275
  • 1
  • 9
  • 38
  • 64
3
votes
0 answers

scatter3d {car} - Adjusting axis scale

I have searched high and low across the web and in StackOverflow, but I can't find out how to adjust the axes in the scatter3d() function. My example code is library(mvtnorm) library(rgl) library(car) # multivariate norm data, split into two…
3
votes
1 answer

Uniformly scaled axes in 3d plot

I'm plotting a set of 3d coordinates (x,y,z) using Axes3D. My code reads import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import…
phlegmax
  • 419
  • 1
  • 4
  • 11
3
votes
1 answer

Issue with scatter3

Probably it's scatter3 what I don't understand. I have a matrix of which all slices but the last are NaNed (M(:,:,1:10) = NaN;) and then it's permuted switching first and last dimension. So there are only values in M(11,:,:). I expect all plotted…
embert
  • 7,336
  • 10
  • 49
  • 78
2
votes
0 answers

Change the orientation of a marker in a 3D scatter plot in matplotlib

I work on the dynamics of ellipsoidal particles. And I want to visualise how they go about in space using matplotlib. Usually, to represent spherical particles, one can use a scatter plot with marker = 'o', but for ellipsoidal particles, I also want…
1 2
3
16 17