广告位API接口通信错误,查看德得广告获取帮助
想问下MATLAB里 ‘Markersize’ 设置的值是‘Marker_size’是什么意思
就是标准尺寸。
‘markersize’plot([0,1,2,3,4],[0,2,5,6,9],'c-pentagram','markersize',15) 画图的命令是:marker是图上画上点的地方表上符号,不如点,方框,圆框,十字,星号,等等
后面的size就是其大小了,不知道值的话,可以画完图点编辑框上面的箭头,然后双击画的图,下面出现属性框,marker项后面的数字下拉菜单就是size,选择合适的大小,今后就用这个值就行
画图的命令是:
plot([0,1,2,3,4],[0,2,5,6,9],'c-pentagram','markersize',30)
运行程序结果如图:
扩展资料:
matplotlib的基本用法
import matplotlib.pyplot as plt
import numpy as np
绘制普通图像
x = np.linspace(-1, 1, 50)
y1 = 2 * x + 1
y2 = x**2
plt.figure()
# 在绘制时设置lable, 逗号是必须的
l1, = plt.plot(x, y1, label = 'line')
l2, = plt.plot(x, y2, label = 'parabola', color = 'red', linewidth = 1.0, linestyle = '--')
# 设置坐标轴的取值范围
plt.xlim((-1, 1))
plt.ylim((0, 2))