本文簡要介紹 python 語言中 matplotlib._api.deprecation.delete_parameter
的用法。
-
指示
func
的參數name
正在被棄用的裝飾器。func
的實際實現應在其簽名中保留name
參數,或接受**kwargs
參數(將通過該參數傳遞name
)。不推薦使用的參數之後的參數實際上變成了僅關鍵字(因為它們不能在不觸發不推薦使用的參數的 DeprecationWarning 的情況下按位置傳遞),並且應該在已過棄用期並刪除不推薦使用的參數後進行標記。
since
、name
和func
之外的參數僅是關鍵字,並轉發到warn_deprecated
。例子
@_api.delete_parameter("3.1", "unused") def func(used_arg, other_arg, unused, more_args): ...
用法
matplotlib._api.deprecation.delete_parameter(since, name, func=None, **kwargs)
相關用法
- Python matplotlib define_aliases用法及代碼示例
- 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.deprecation.delete_parameter。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。