
Sagemath
文章平均质量分 59
Poul_henry
这个作者很懒,什么都没留下…
展开
-
sagemath-list_plot()改变点的大小
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_lab...原创 2018-09-11 13:15:20 · 15149 阅读 · 0 评论 -
sagemath-list_plot()调整图例(legend)中点的数量(参考python_matplotlib)
之前用sagemath中的list_plot画二维散点图时,本来落在二维空间的就是一些离散的点,所以想加上图例(legend),在图例中显示和这些点相同的一个点,用以代表这些所有的点是表示了什么,但往往显示的是3个点,代码和效果如下:代码:a=range(10)b=range(10)plot1 = list_plot(zip(a,b),plotjoined=False,color=...原创 2019-03-14 22:10:42 · 1428 阅读 · 0 评论