1

I am trying to get a scatter plot with 2 axes (x,z) in a log scale using set_scale but that doesn't work.

import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
x=np.linspace(0,500,10)
y=np.linspace(0,1,10)
z=np.linspace(0,100000,10)

fig = plt.figure()
ax = Axes3D(fig)

ax.plot(x, y, z,'o', c='g')
ax.grid()

#ax.set_xscale('log')
#ax.set_zscale('log')
#ax.set_xlim([min(x), max(x)])
#ax.set_zlim([min(z), max(z)])
plt.show()
MAAHE
  • 169
  • 6

0 Answers0