本文整理汇总了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