I'm trying to make a 3D scatter plot using matplotlib. The issue I'm running into is that the plot isn't using a 1:1 aspect ratio between all pairs of the axes. Would anyone know how to fix this?
My code looks something like this:
from matplotlib.pyplot import *
from mpl_toolkits.mplot3d import *
figure(1, figsize=(7,7))
ax = gca(projection='3d')
ax.scatter(FH[:,0],FH[:,1],FH[:,2],s=0.5)
show()
I've tried adding kwargs like "aspect=1" to various parts of the script (i.e. - scatter(), figure(), ax()) but nothing has really worked so far.
Any help would be appreciated!
Thanks!