sagemath中,使用list_plot()函数画散点图时,默认情况下的点的大小较小。
示例:
a=range(10)
b=(random()*20 for _ in range(10))
array=[]
plot1 = list_plot(zip(a,b),color=(0,.5,1),marker='o',ticks=[range(10),range(20)],legend_label='Original Data Points')
plot1.axes_labels(['x coordinate ','y coordinate'])
plot1.axes_labels_size(1.2)
plot1.legend(True)
plot1.show(frame=True)
对比在python的matplotlib中,是通过markersize调节marker的大小:参考1 参考2
但在sagemath的list_plot中,不能用该参数调节。
如果将 上例中的函数改为:
plot1 = list_plot(zip(a,b),color=(0,.5,1),marker='o',ticks=[range(10),range(20)],legend_label='Original Data Points',markersize=50)