python - how to make a Matplotlib 3D Scatter Plot bigger? -
i have piece of code:
from mpl_toolkits.mplot3d import axes3d import matplotlib.pyplot plt fig = plt.figure() ax = fig.add_subplot(111, projection='3d') ax.scatter(data.fac1_1, data.fac2_1, data.fac3_1, c='r', marker='o') ax.set_xlabel('x label') ax.set_ylabel('y label') ax.set_zlabel('z label') plt.show()
everything works perfeclty fine. issue scatter plot comes out tiny. there ay make bigger? ooked @ documentation wasn't able find it.
thank you
you can make figure bigger using figsize:
fig = plt.figure(figsize=(12,10))
to make markers scatter plot bigger use s
:
ax.scatter(data.fac1_1, data.fac2_1, data.fac3_1, s=500, c='r', marker='o')
Comments
Post a Comment