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

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -