本文簡要介紹 python 語言中 matplotlib._api.define_aliases
的用法。
-
用於定義屬性別名的類裝飾器。
用於
@_api.define_aliases({"property": ["alias", ...], ...}) class C: ...
對於每個屬性,如果到目前為止在類中定義了對應的
get_property
,則會定義一個名為get_alias
的別名;對於二傳手來說也是如此。如果 getter 和 setter 都不存在,則會引發異常。別名映射存儲為類上的
_alias_map
屬性,並且可由normalize_kwargs
使用(假設較高優先級的別名排在最後)。
用法
matplotlib._api.define_aliases(alias_d, cls=None)
相關用法
- Python matplotlib delete_parameter用法及代碼示例
- Python matplotlib deprecated用法及代碼示例
- Python matplotlib deprecate_privatize_attribute用法及代碼示例
- Python matplotlib disconnect用法及代碼示例
- Python matplotlib axvspan用法及代碼示例
- Python matplotlib Axes.get_legend_handles_labels用法及代碼示例
- Python matplotlib AbstractMovieWriter用法及代碼示例
- Python matplotlib triplot用法及代碼示例
- Python matplotlib StarPolygonCollection.set_hatch用法及代碼示例
- Python matplotlib Axes.hist用法及代碼示例
- Python matplotlib boxplot用法及代碼示例
- Python matplotlib subplots用法及代碼示例
- Python matplotlib InsetPosition用法及代碼示例
- Python matplotlib ToolManager.toolmanager_disconnect用法及代碼示例
- Python matplotlib Figure.set_size_inches用法及代碼示例
- Python matplotlib figlegend用法及代碼示例
- Python matplotlib Axes.step用法及代碼示例
- Python matplotlib Axes.contour用法及代碼示例
- Python matplotlib LassoSelector用法及代碼示例
- Python matplotlib BrokenBarHCollection.set_hatch用法及代碼示例
- Python matplotlib Axes.plot用法及代碼示例
- Python matplotlib Axes.semilogx用法及代碼示例
- Python matplotlib Axes.semilogy用法及代碼示例
- Python matplotlib MovieWriterRegistry.register用法及代碼示例
- Python matplotlib PolyQuadMesh.set_hatch用法及代碼示例
注:本文由純淨天空篩選整理自skytowner.com大神的英文原創作品 matplotlib._api.define_aliases。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。