當前位置: 首頁>>代碼示例>>Python>>正文


Python axis.YAxis方法代碼示例

本文整理匯總了Python中matplotlib.axis.YAxis方法的典型用法代碼示例。如果您正苦於以下問題:Python axis.YAxis方法的具體用法?Python axis.YAxis怎麽用?Python axis.YAxis使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在matplotlib.axis的用法示例。


在下文中一共展示了axis.YAxis方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: _init_axis

# 需要導入模塊: from matplotlib import axis [as 別名]
# 或者: from matplotlib.axis import YAxis [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 YAxis [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 YAxis [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 YAxis [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_yaxis

# 需要導入模塊: from matplotlib import axis [as 別名]
# 或者: from matplotlib.axis import YAxis [as 別名]
def get_yaxis(self):
        """Return the YAxis instance."""
        return self.yaxis 
開發者ID:PacktPublishing,項目名稱:Mastering-Elasticsearch-7.0,代碼行數:5,代碼來源:_base.py

示例6: get_yaxis

# 需要導入模塊: from matplotlib import axis [as 別名]
# 或者: from matplotlib.axis import YAxis [as 別名]
def get_yaxis(self):
        """Return the YAxis instance"""
        return self.yaxis 
開發者ID:miloharper,項目名稱:neural-network-animation,代碼行數:5,代碼來源:_base.py

示例7: _init_axis

# 需要導入模塊: from matplotlib import axis [as 別名]
# 或者: from matplotlib.axis import YAxis [as 別名]
def _init_axis(self):
        #Taken from Axes and modified to use our modified X-axis
        self.xaxis = SkewXAxis(self)
        self.spines['top'].register_axis(self.xaxis)
        self.spines['bottom'].register_axis(self.xaxis)
        self.yaxis = maxis.YAxis(self)
        self.spines['left'].register_axis(self.yaxis)
        self.spines['right'].register_axis(self.yaxis) 
開發者ID:miloharper,項目名稱:neural-network-animation,代碼行數:10,代碼來源:test_skew.py

示例8: _init_axis

# 需要導入模塊: from matplotlib import axis [as 別名]
# 或者: from matplotlib.axis import YAxis [as 別名]
def _init_axis(self):
        # Taken from Axes and modified to use our modified X-axis
        self.xaxis = SkewXAxis(self)
        self.spines['top'].register_axis(self.xaxis)
        self.spines['bottom'].register_axis(self.xaxis)
        self.yaxis = maxis.YAxis(self)
        self.spines['left'].register_axis(self.yaxis)
        self.spines['right'].register_axis(self.yaxis) 
開發者ID:holzschu,項目名稱:python3_ios,代碼行數:10,代碼來源:skewt.py


注:本文中的matplotlib.axis.YAxis方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。