question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't get axes to be fixed in 3D scatter plot

See original GitHub issue

I’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:

image image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JackUrbcommented, Aug 20, 2018

It’s possible that something isn’t working properly with 3dplots and plotly - I can investigate sometime this week.

0reactions
JackUrbcommented, Aug 31, 2018

Hi @meder411 - Try installing from source, this should work for you now. As an aside, tickstep is ignored on 3d plots

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found