本文簡要介紹 python 語言中 mpl_toolkits.axisartist.axislines.AxisArtistHelper
的用法。
-
基礎:
object
AxisArtistHelper 應該使用給定的 API 定義以下方法。請注意,第一個軸參數將是調用者藝術家的軸屬性。:
# LINE (spinal line?) def get_line(self, axes): # path : Path return path def get_line_transform(self, axes): # ... # trans : transform return trans # LABEL def get_label_pos(self, axes): # x, y : position return (x, y), trans def get_label_offset_transform(self, axes, pad_points, fontprops, renderer, bboxes, ): # va : vertical alignment # ha : horizontal alignment # a : angle return trans, va, ha, a # TICK def get_tick_transform(self, axes): return trans def get_tick_iterators(self, axes): # iter : iterable object that yields (c, angle, l) where # c, angle, l is position, tick angle, and label return iter_major, iter_minor
-
class
固定的(loc
,nth_coord=None
)# -
基礎:
mpl_toolkits.axisartist.axislines.AxisArtistHelper._Base
固定(在軸坐標中)軸的幫助器類。
nth_coord = 二維坐標值沿其變化,nth_coord = 0 -> x 軸,nth_coord = 1 -> y 軸
-
get_axislabel_pos_角度(
axes
)# -
返回 transAxes 中的標簽參考位置。
get_label_transform() 返回 (transAxes+offset) 的變換
-
get_axislabel_transform(
axes
)#
-
get_line(
axes
)#
-
get_line_transform(
axes
)#
- get_nth_coord()#
-
get_tick_transform(
axes
)#
-
get_axislabel_pos_角度(
-
用法
class mpl_toolkits.axisartist.axislines.AxisArtistHelper
相關用法
- Python matplotlib AxisArtist.toggle用法及代碼示例
- Python matplotlib AxislineStyle用法及代碼示例
- Python matplotlib Axes.get_legend_handles_labels用法及代碼示例
- Python matplotlib Axes.step用法及代碼示例
- Python matplotlib Axes.contour用法及代碼示例
- Python matplotlib Axes.plot用法及代碼示例
- Python matplotlib Axes.semilogx用法及代碼示例
- Python matplotlib Axes.semilogy用法及代碼示例
- Python matplotlib Axes.inset_axes用法及代碼示例
- Python matplotlib Axes.axis用法及代碼示例
- Python matplotlib Axes.barbs用法及代碼示例
- Python matplotlib Axes.tripcolor用法及代碼示例
- Python matplotlib Axes.set_prop_cycle用法及代碼示例
- Python matplotlib Axes.axline用法及代碼示例
- Python matplotlib Axes.tick_params用法及代碼示例
- Python matplotlib Axes.axvspan用法及代碼示例
- Python mpl_toolkits.mplot3d.axes3d.Axes3D.plot_trisurf用法及代碼示例
- Python matplotlib Axes3D.text2D用法及代碼示例
- Python matplotlib Axes.contourf用法及代碼示例
- Python matplotlib Axes.tricontourf用法及代碼示例
- Python matplotlib Axes.locator_params用法及代碼示例
- Python matplotlib Axes.set_ylim用法及代碼示例
- Python matplotlib Axes3D.margins用法及代碼示例
- Python matplotlib Axes.loglog用法及代碼示例
- Python matplotlib Axes.text用法及代碼示例
注:本文由純淨天空篩選整理自skytowner.com大神的英文原創作品 mpl_toolkits.axisartist.axislines.AxisArtistHelper。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。