赞
踩
fig, ax = plt.subplots() fig.suptitle('Marker fillstyle', fontsize=14) fig.subplots_adjust(left=0.4) filled_marker_style = dict(marker='o', linestyle=':', markersize=15, color='darkgrey', markerfacecolor='tab:blue', markerfacecoloralt='lightsteelblue', markeredgecolor='brown') for y, fill_style in enumerate(Line2D.fillStyles): ax.text(-0.5, y, repr(fill_style), **text_style) ax.plot([y] * 3, fillstyle=fill_style, **filled_marker_style) format_axes(ax) plt.show()
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。