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
1
vote
1 answer

How increase the right margin in matplotlib 3D scatter plot?

I'm drawing a simple 3D scatter plot using matplotlib; however, the Z axes label moves outside the bounding box. I tried adjusting the size, using tight.layout, and many more option, but I wasn't able to move the plot in such a way that the Z axes…
1
vote
1 answer

Z-label does not show up in 3d matplotlib scatter plot

The z-label does not show up in my figure. What is wrong? import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111, projection='3d') ax.set_xlabel("x") ax.set_ylabel("y") ax.set_zlabel("z") plt.show() Output Neither…
Moritz
  • 27
  • 7
1
vote
0 answers

Plotly Scatterplot3d display x-y grid that does not "climb" z-axis

I am currently trying to rebuild the plot from the first figure (from Pang et al 2021) in plotly. However I do not find a setting in which I can prevent the x-y grid to also climb up to z axis (second figure). My code is the…
1
vote
0 answers

How to update Plotly Scatter3d graph in streamlit?

I am stuck off a point about updating plotly Scatter3d. I have a bunch of x, y, and z value of a dataframe. Firstly, User loads first dataframe file. Figure plots the first dataframe as you can see Then, user loads second dataframe. However, there…
1
vote
0 answers

Plotly: searching for element in scatter3d graph object

I am trying to visualize some text data in a cluster using the example here I managed to run the code successfully and now I have the interactive plot shown in the end which looks like this. I would like to search for a word in all the data points.…
Atirag
  • 1,660
  • 7
  • 32
  • 60
1
vote
0 answers

plotly button to switch between scatter_3d

I'm using Plotly in python to create multiple 3d scatter plots (plotly.express.scatter_3d) Each one is a complete and independent px.scatter_3d fig. They are gathered in a list: all_figs = [fig1,fig2, ... , fig6] I want to create a single fig with…
Guy Barash
  • 470
  • 5
  • 17
1
vote
1 answer

How to show legend in Pyplot Scatter 3D

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,…
Adrian
  • 177
  • 9
1
vote
0 answers

Scatter3D built with graph_objects ignores customdata in hovertemplate in subplot

I'm trying to build a graph which shows two 3D Scatter plots, and I managed to do it using this tutorial. However, I'm struggling to make the hovertemplate work. I've followed the same structure I used to make it work for a single Scatter 3D plot…
J. Maria
  • 362
  • 3
  • 14
1
vote
1 answer

Add constant x, y, z lines into 3D scatter plot

I want to add constant x, y, z lines into a matplotlib 3D scatter plot in Python which extended from this limit point, may I know how could I do so? x_limit = [-0.5] y_limit = [151] z_limit = [1090] Example code: import matplotlib.pyplot as plt …
hy0916
  • 11
  • 3
1
vote
1 answer

Scatter3D add multiple surfaces

I am trying to add multiple surfaces to one scatter3d plot in R. Here is an example from scatter3d documentation: library(plot3D) with (mtcars, { # linear regression fit <- lm(mpg ~ wt + disp) # predict values on regular xy grid …
Kivis
  • 924
  • 2
  • 10
  • 20
1
vote
1 answer

scatter3D in R Colouring Issue with Plane

I am using a scatter3D from the library plot3D and plotting a scatterplot with a plane of predictions: library(plot3D) scatter3D(x1,x2,y, bty = "g", pch = 20, cex = 2, ticktype = "detailed", surf = list(x =…
Cinnamon
  • 43
  • 4
1
vote
1 answer

Error bars on 3D scatter plots, with array of points

I am trying to get error bars on a 3D scatter plot I have. I have seen this topic on here 'Plotting columns of an list or array with scatter3D in python' However mine is an array of z values with a corresponding array of error values. Here is the…
1
vote
2 answers

Assertion Error when producing ScatterText Visualisation

I'm new to scattertext and have written the code which should produce an interactive html visualisation. import spacy import pandas as pd import scattertext as st twitterData = pd.read_csv("stock_data.csv") twitterData.dtypes nlp =…
1
vote
1 answer

opengl strange behavior when using two shaders

I have two shaders, one for instancing, one for just plotting a line. They correspond to two segments of code (segment1 for instancing and segment2 for a line) respectively. And the programing behaviour is weird: When I put segment2 behind…
YNX
  • 511
  • 6
  • 17
1
vote
1 answer

R plotly scatter3d: How to make nearest marker appear the biggest?

Currently my code looks like this: library(plotly) count = data.frame( row.names = c("Cell1", "Cell2", "Cell3", "Cell4", "Cell5", "Cell6"), Gene1 = c(10, 11, 8, 3, 2, 1), Gene2 = c(6, 4, 5, 3, 2.8, 1), Gene3 = c(12, 9, 10, 2.5, 1.3,…
mariusr
  • 69
  • 6