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
0
votes
0 answers

3D surface plotting empty

I'am trying to do a surface plotting using plotly.graph_objs. For now I've been able to plot scatter_3D from my data. here is some example data: x = array([1.7 , 1.7 , 1.7 , 1.81, 1.81, 1.81, 1.81, 1.84, 1.84, 1.84, 1.84, 1.88, 1.88, 1.88, 2. ,…
0
votes
0 answers

Plotly scatter3d go empty dealing with a huge datapoints

I am trying to plot a huge number of data points, if I use the following code, it can work properly N = 615677 df = pd.DataFrame(dict(x=np.random.randn(N), y=np.random.randn(N), …
0
votes
1 answer

plotly 3d scatter plot with solid and transparent colors in R

I'm trying to create a 3d scatter plot with plotly in R. I want to color the data points by a categorical value, using a custom color scale. I need some of the values to be solid colors and others to be transparent. Here is a mockup of my…
Andrea
  • 77
  • 1
  • 7
0
votes
1 answer

GNUPlot: Generate `surf`-like plot from `scatter` base

firstly, I'm very new to GNUPlot, so please forgive me if I might sound silly or say stupid things. I have to visualise some 3D data. I firstly wanted to have something that just worked correctly. Here it is an example: It's a scatter plot, meaning…
mEm
  • 353
  • 3
  • 12
0
votes
0 answers

How do I change the colours on my 3d categorical data plot?

I have categorical data on 3 axes (X1, X2, X3) in df mapping whether something is Y = "Red" or Y = "Green". R 3d plot with categorical colors > df # A tibble: 6 x 7 Obs. X1 X2 X3 Y dist Y1
therickster
  • 111
  • 6
0
votes
0 answers

How to create graphs using scatter3D (Rstudio) in Jupyter notebook?

I have added/installed packages for Rstudio to use in Jupyter notebook. However, I am unable to use scatter3D command in jupyter notebook. Tried installing R using conda prompt to add it to the jupyter notebook, also tried installing jupyter within…
0
votes
1 answer

How to fill selected cells in 3D Matplotlib?

This should a straight forward question but I could not find the answer, sorry if the question is a duplicate one. Basically I want to fill Ncell cells on a 3D grid of Ngrid x Ngrid x Ngrid. Below I present a MWE where I just scatter plot the centre…
deltasata
  • 377
  • 1
  • 4
  • 21
0
votes
1 answer

Change color to a single point in plotly scatter 3D

I made a plotly 3D scatter: fig = px.scatter_3d(data, x = x, y = y, z = z, color=data['A'], color_continuous_scale=px.colors.diverging.Spectral_r, color_continuous_midpoint= 0, …
Adrian
  • 177
  • 9
0
votes
0 answers

Matplotlib - How to assign an alpha value to each point on a 3D scatter plot? Radar Data Included

So I am trying to create a 3D scatter plot of radar data, where each point is assigned an alpha value based on the amplitude of the corresponding pixel. I have done this looping through all x,y,z points and building the scatter plot point by point…
S F
  • 11
  • 2
0
votes
1 answer

coloring a 3D scatterplot

I have a function to plot 3D scatter plots, it works fine but I don't see how I can give a color to specific data points based on a condition for example: in The following code I am plotting 3 features; nbActionsD30, avgActionsMonth and actionSHR. I…
0
votes
1 answer

Use color map from seaborn sns.pairplot tab10_r on mpl_toolkits 3D scatter plot

I am trying to get the first two colors found in the sns.pairplot shown here using colors = dict(zip(['2', '1', '0'], sns.color_palette('tab10_r', 3))) on the 3D scatter plot using mpl_toolkits. When I put the tab10_r into the cmap, I get this…
Joe
  • 357
  • 2
  • 10
  • 32
0
votes
1 answer

Specify color of classes for mplot3d and show label

using this code in order to generate a 3D plot: import numpy as np import matplotlib.pyplot as plt from mpl_toolkits import mplot3d fig = plt.figure() plt.figure(figsize=(15, 12)) ax = plt.axes(projection="3d") x= x_pca[:,0] y= x_pca[:,1] z =…
Joe
  • 357
  • 2
  • 10
  • 32
0
votes
1 answer

How can I plot the contents of a dictionary in a more dynamic way?

my issue is the following, I am typing a script to scatter plot some points but I think my code can be written in a more dynamic or pythonic way. cam_0_pos_pts =…
mkr
  • 17
  • 6
0
votes
0 answers

How to plot 3d spheres with "Glossy color" in matplotlib (Python), like the Fig. 1 below?

I have a dataset with 4 columns (x, y, z, size), and want to produce a scatter plot of spheres in 3D like the following Fig.1. What I have been able to produce so far is shown in Fig.2. The spheres are not smooth and the color is not shiny like what…
Suren
  • 1
0
votes
1 answer

Adding a colorbar by the dates of points in a 3D scatter plot

I am attempting to plot earthquakes of a certain region in a 3D plot with the color as a way to show time/date of the event. The data points are accurately colored, however, when I plot the color bar it only displays 0.0 to 1.0. How do I get the…
Cody
  • 3
  • 1