0
Spyder(Python 3.5)を使用して3Dグラフをプロットすることができました。ただし、グラフのサイズが小さすぎます。グラフのサイズを大きくして画像ファイルとして保存するにはどうすればよいですか?3D散布図のサイズ変更
下のグラフをプロットするために使用されるコードです:
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
x =[0,1,2,3,4]
y =[11,1,5,2,9]
z =[1,2,3,4,5,6]
ax.scatter(x, y, z, c='r', marker='o')
ax.set_xlabel('Days since last interaction')
ax.set_ylabel('Number of conversions')
ax.set_zlabel('Total number of interactions')
plt.show()
ありがとう!
名前付き引数
figsize
を使用することができます。 Reblochonさん、本当にありがとうございました! – Max