Can't get axes to be fixed in 3D scatter plot
See original GitHub issueI’m trying to visualize pointclouds in the 3D scatter plot. Everything plots fine, except my axes keep changing with each update. The annoying consequence is that the visualization is distorted (as the axes are not all scaled similarly), making it quite difficult to tell if anything is working. It seems from the examples that xtickmax
and the like should do the trick, but it doesn’t seem to be. What am I missing?
I am using the most recent visdom available via pip
.
My code snippet:
vis.scatter(
X=pts,
Y=labels,
win='points',
opts=dict(
title='Points',
legend=['Predicted', 'Ground Truth'],
markersize=3,
markercolor=torch.tensor([[0,0,255], [255,0,0]]).int().numpy(),
xtickmin=-10,
xtickmax=10,
xtickstep=0.5,
ytickmin=-10,
ytickmax=10,
ytickstep=0.5,
ztickmin=-10,
ztickmax=10,
ztickstep=0.5))
Output snapshots:
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Can't get axes to be fixed in 3D scatter plot · Issue #451
I'm trying to visualize pointclouds in the 3D scatter plot. Everything plots fine, except my axes keep changing with each update.
Read more >Can't Get Axis to Align Right on MatPlotLib 3d
1) I can set the y-axis labels using: · 2) If I try using set_yticklabels as well, though, the alignment fixes but it...
Read more >How to set axis of scatter3? - MATLAB Answers
Hi, I have a for loop that basically continuously plots points using drawnow corresponding to particles in an explosion.
Read more >3D scatterplot — Matplotlib 3.6.2 documentation
Demonstration of a basic scatterplot in 3D. scatter3d. import matplotlib.pyplot as plt import numpy as np # Fixing random state for reproducibility ...
Read more >3D Scatter Plotting in Python using Matplotlib
Example 1: Let's create a basic 3D scatter plot using the ax. scatter3D() function.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s possible that something isn’t working properly with 3dplots and plotly - I can investigate sometime this week.
Hi @meder411 - Try installing from source, this should work for you now. As an aside,
tickstep
is ignored on 3d plots