本文簡要介紹 python 語言中 matplotlib.collections.AsteriskPolygonCollection
的用法。
-
基礎:
RegularPolyCollection
用
numsides
點繪製一組常規星號。- 參數:
- numsides int
-
多邊形的邊數。
- rotation 浮點數
-
以弧度為單位的多邊形旋轉。
- sizes 浮點數元組
-
以點^2為單位的多邊形外接圓的麵積。
- **kwargs
-
轉發到
Collection
。
例子
有關完整示例,請參見 Lasso Demo:
offsets = np.random.rand(20, 2) facecolors = [cm.jet(x) for x in np.random.rand(20)] collection = RegularPolyCollection( numsides=5, # a pentagon rotation=0, sizes=(50,), facecolors=facecolors, edgecolors=("black",), linewidths=(1,), offsets=offsets, offset_transform=ax.transData, )
用法
class matplotlib.collections.AsteriskPolygonCollection(numsides, *, rotation=0, sizes=(1,), **kwargs)
相關用法
- Python matplotlib AsteriskPolygonCollection.sticky_edges用法及代碼示例
- Python matplotlib AsteriskPolygonCollection.set_hatch用法及代碼示例
- Python matplotlib Axes.get_legend_handles_labels用法及代碼示例
- Python matplotlib AbstractMovieWriter用法及代碼示例
- Python matplotlib Axes.hist用法及代碼示例
- Python matplotlib Axes.step用法及代碼示例
- Python matplotlib Axes.contour用法及代碼示例
- Python matplotlib Axes.plot用法及代碼示例
- Python matplotlib Axes.semilogx用法及代碼示例
- Python matplotlib Axes.semilogy用法及代碼示例
- Python matplotlib Axes.inset_axes用法及代碼示例
- Python matplotlib Axes.axis用法及代碼示例
- Python matplotlib AutoDateFormatter用法及代碼示例
- Python matplotlib Axes.barbs用法及代碼示例
- Python matplotlib AnchoredDrawingArea用法及代碼示例
- Python matplotlib Axes.tripcolor用法及代碼示例
- Python matplotlib Affine2D.set_matrix用法及代碼示例
- Python matplotlib AxisArtist.toggle用法及代碼示例
- Python matplotlib Axis.get_tick_params用法及代碼示例
- Python matplotlib Axes.set_prop_cycle用法及代碼示例
- Python matplotlib ArrowStyle用法及代碼示例
- Python matplotlib Axes.axline用法及代碼示例
- Python matplotlib Axes.tick_params用法及代碼示例
- Python matplotlib Axes.axvspan用法及代碼示例
- Python matplotlib AxisArtist.set_axisline_style用法及代碼示例
注:本文由純淨天空篩選整理自skytowner.com大神的英文原創作品 matplotlib.collections.AsteriskPolygonCollection。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。