本文整理匯總了Python中matplotlib.axis.XAxis方法的典型用法代碼示例。如果您正苦於以下問題:Python axis.XAxis方法的具體用法?Python axis.XAxis怎麽用?Python axis.XAxis使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類matplotlib.axis
的用法示例。
在下文中一共展示了axis.XAxis方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: _init_axis
# 需要導入模塊: from matplotlib import axis [as 別名]
# 或者: from matplotlib.axis import XAxis [as 別名]
def _init_axis(self):
self.xaxis = maxis.XAxis(self)
self.yaxis = maxis.YAxis(self)
# Do not register xaxis or yaxis with spines -- as done in
# Axes._init_axis() -- until GeoAxes.xaxis.cla() works.
# self.spines['geo'].register_axis(self.yaxis)
self._update_transScale()
示例2: _init_axis
# 需要導入模塊: from matplotlib import axis [as 別名]
# 或者: from matplotlib.axis import XAxis [as 別名]
def _init_axis(self):
"move this out of __init__ because non-separable axes don't use it"
self.xaxis = maxis.XAxis(self)
self.yaxis = maxis.YAxis(self)
# Calling polar_axes.xaxis.cla() or polar_axes.xaxis.cla()
# results in weird artifacts. Therefore we disable this for
# now.
# self.spines['polar'].register_axis(self.yaxis)
self._update_transScale()
示例3: __init__
# 需要導入模塊: from matplotlib import axis [as 別名]
# 或者: from matplotlib.axis import XAxis [as 別名]
def __init__(self, axis, axisnum, spine):
self._axis = axis
self._axisnum = axisnum
self.line = spine
if isinstance(axis, XAxis):
self._axis_direction = ["bottom", "top"][axisnum-1]
elif isinstance(axis, YAxis):
self._axis_direction = ["left", "right"][axisnum-1]
else:
raise ValueError("axis must be instance of XAxis or YAxis : %s is provided" % (axis,))
Artist.__init__(self)
示例4: _init_axis
# 需要導入模塊: from matplotlib import axis [as 別名]
# 或者: from matplotlib.axis import XAxis [as 別名]
def _init_axis(self):
"move this out of __init__ because non-separable axes don't use it"
self.xaxis = maxis.XAxis(self)
self.spines['bottom'].register_axis(self.xaxis)
self.spines['top'].register_axis(self.xaxis)
self.yaxis = maxis.YAxis(self)
self.spines['left'].register_axis(self.yaxis)
self.spines['right'].register_axis(self.yaxis)
self._update_transScale()
示例5: get_xaxis
# 需要導入模塊: from matplotlib import axis [as 別名]
# 或者: from matplotlib.axis import XAxis [as 別名]
def get_xaxis(self):
"""Return the XAxis instance."""
return self.xaxis
示例6: get_xaxis
# 需要導入模塊: from matplotlib import axis [as 別名]
# 或者: from matplotlib.axis import XAxis [as 別名]
def get_xaxis(self):
"""Return the XAxis instance"""
return self.xaxis
示例7: __init__
# 需要導入模塊: from matplotlib import axis [as 別名]
# 或者: from matplotlib.axis import XAxis [as 別名]
def __init__(self, *args, **kwargs):
maxis.XAxis.__init__(self, *args, **kwargs)
self.upper_interval = 0.0, 1.0