本文簡要介紹 python 語言中 matplotlib.spines.Spines
的用法。
-
基礎:
MutableMapping
軸中所有
Spine
的容器。該接口類似於字典,將名稱(例如'left')映射到
Spine
對象。此外,它還實現了一些 pandas.Series-like 函數,例如按屬性訪問元素:spines['top'].set_visible(False) spines.top.set_visible(False)
通過傳遞一個列表可以同時處理多個脊椎:
spines[['top', 'right']].set_visible(False)
使用開放切片來處理所有刺:
spines[:].set_visible(False)
後兩種索引方法將返回
SpinesProxy
,該SpinesProxy
向其成員廣播所有set_*()
和set()
調用,但不能用於任何其他操作。
用法
class matplotlib.spines.Spines(**kwargs)
相關用法
- Python matplotlib SpanSelector用法及代碼示例
- Python matplotlib StarPolygonCollection.set_hatch用法及代碼示例
- Python matplotlib SubFigure.subplots用法及代碼示例
- Python matplotlib SubplotSpec.subgridspec用法及代碼示例
- Python matplotlib SubFigure.add_axes用法及代碼示例
- Python matplotlib SubFigure.colorbar用法及代碼示例
- Python matplotlib Sankey用法及代碼示例
- Python matplotlib SubFigure.sticky_edges用法及代碼示例
- Python matplotlib Substitution用法及代碼示例
- Python matplotlib SubFigure用法及代碼示例
- Python matplotlib SubFigure.add_gridspec用法及代碼示例
- Python matplotlib SubFigure.add_subplot用法及代碼示例
- Python matplotlib SubFigure.align_xlabels用法及代碼示例
- Python matplotlib SubFigure.align_ylabels用法及代碼示例
- Python matplotlib StarPolygonCollection.sticky_edges用法及代碼示例
- Python matplotlib SubFigure.legend用法及代碼示例
- Python matplotlib StarPolygonCollection用法及代碼示例
- Python matplotlib axvspan用法及代碼示例
- Python matplotlib Axes.get_legend_handles_labels用法及代碼示例
- Python matplotlib AbstractMovieWriter用法及代碼示例
- Python matplotlib triplot用法及代碼示例
- Python matplotlib Axes.hist用法及代碼示例
- Python matplotlib boxplot用法及代碼示例
- Python matplotlib subplots用法及代碼示例
- Python matplotlib InsetPosition用法及代碼示例
注:本文由純淨天空篩選整理自skytowner.com大神的英文原創作品 matplotlib.spines.Spines。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。