本文簡要介紹 python 語言中 matplotlib.text.Text.set_bbox
的用法。
-
在自己周圍畫一個邊界框。
- 參數:
- rectprops 帶有
patches.FancyBboxPatch
屬性的字典 -
默認的 boxstyle 是'square'。
patches.FancyBboxPatch
的突變比例設置為字體大小。
- rectprops 帶有
例子
t.set_bbox(dict(facecolor='red', alpha=0.5))
用法
set_bbox(rectprops)
相關用法
- Python matplotlib TextToPath.get_text_path用法及代碼示例
- Python matplotlib TextPath用法及代碼示例
- Python matplotlib TexManager.get_rgba用法及代碼示例
- Python matplotlib ToolManager.toolmanager_disconnect用法及代碼示例
- Python matplotlib TriMesh.sticky_edges用法及代碼示例
- Python matplotlib TwoSlopeNorm用法及代碼示例
- Python matplotlib Table.edges用法及代碼示例
- Python matplotlib TriMesh.set_hatch用法及代碼示例
- Python matplotlib Transform.__sub__用法及代碼示例
- Python matplotlib Table.set_fontsize用法及代碼示例
- 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 Figure.set_size_inches用法及代碼示例
- Python matplotlib figlegend用法及代碼示例
- Python matplotlib Axes.step用法及代碼示例
- Python matplotlib Axes.contour用法及代碼示例
- Python matplotlib LassoSelector用法及代碼示例
- Python matplotlib BrokenBarHCollection.set_hatch用法及代碼示例
注:本文由純淨天空篩選整理自skytowner.com大神的英文原創作品 matplotlib.text.Text.set_bbox。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。