本文簡要介紹 python 語言中 matplotlib.table.Table.set_fontsize
的用法。
-
設置單元格文本的字體大小(以磅為單位)。
- 參數:
- size 浮點數
注意
隻要未禁用自動字體大小,該值就會被剪裁,以使文本水平適合單元格。
您可以使用
auto_set_font_size
禁用此行為。>>> the_table.auto_set_font_size(False) >>> the_table.set_fontsize(20)
但是,沒有自動縮放行高,因此文本可能會超出單元格邊界。
用法
set_fontsize(size)
相關用法
- Python matplotlib Table.edges用法及代碼示例
- Python matplotlib ToolManager.toolmanager_disconnect用法及代碼示例
- Python matplotlib Text.set_bbox用法及代碼示例
- Python matplotlib TexManager.get_rgba用法及代碼示例
- Python matplotlib TextToPath.get_text_path用法及代碼示例
- Python matplotlib TriMesh.sticky_edges用法及代碼示例
- Python matplotlib TwoSlopeNorm用法及代碼示例
- Python matplotlib TextPath用法及代碼示例
- Python matplotlib TriMesh.set_hatch用法及代碼示例
- Python matplotlib Transform.__sub__用法及代碼示例
- 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.table.Table.set_fontsize。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。