当前位置: 首页>>代码示例>>Python>>正文


Python axis.XAxis方法代码示例

本文整理汇总了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() 
开发者ID:ktraunmueller,项目名称:Computable,代码行数:9,代码来源:geo.py

示例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() 
开发者ID:ktraunmueller,项目名称:Computable,代码行数:11,代码来源:polar.py

示例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) 
开发者ID:ktraunmueller,项目名称:Computable,代码行数:14,代码来源:mpl_axes.py

示例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() 
开发者ID:PacktPublishing,项目名称:Mastering-Elasticsearch-7.0,代码行数:11,代码来源:_base.py

示例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 
开发者ID:PacktPublishing,项目名称:Mastering-Elasticsearch-7.0,代码行数:5,代码来源:_base.py

示例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 
开发者ID:miloharper,项目名称:neural-network-animation,代码行数:5,代码来源:_base.py

示例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 
开发者ID:miloharper,项目名称:neural-network-animation,代码行数:5,代码来源:test_skew.py


注:本文中的matplotlib.axis.XAxis方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。