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

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -