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


Python Axes.draw方法代码示例

本文整理汇总了Python中matplotlib.axes.Axes.draw方法的典型用法代码示例。如果您正苦于以下问题:Python Axes.draw方法的具体用法?Python Axes.draw怎么用?Python Axes.draw使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在matplotlib.axes.Axes的用法示例。


在下文中一共展示了Axes.draw方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: draw

# 需要导入模块: from matplotlib.axes import Axes [as 别名]
# 或者: from matplotlib.axes.Axes import draw [as 别名]
    def draw(self, renderer):
        # draw the background patch
        self.axesPatch.draw(renderer)
        self._frameon = False

        # add the projection matrix to the renderer
        self.M = self.get_proj()
        renderer.M = self.M
        renderer.vvec = self.vvec
        renderer.eye = self.eye
        renderer.get_axis_position = self.get_axis_position

        # Calculate projection of collections and zorder them
        zlist = [(col.do_3d_projection(renderer), col) \
                for col in self.collections]
        zlist.sort(reverse=True)
        for i, (z, col) in enumerate(zlist):
            col.zorder = getattr(col, '_force_zorder', i)


        # Calculate projection of patches and zorder them
        zlist = [(patch.do_3d_projection(renderer), patch) \
                for patch in self.patches]
        zlist.sort(reverse=True)
        for i, (z, patch) in enumerate(zlist):
            patch.zorder = i

        self.w_xaxis.draw(renderer)
        self.w_yaxis.draw(renderer)
        self.w_zaxis.draw(renderer)
        Axes.draw(self, renderer)
开发者ID:wxgeo,项目名称:geophar,代码行数:33,代码来源:__init__.py

示例2: draw

# 需要导入模块: from matplotlib.axes import Axes [as 别名]
# 或者: from matplotlib.axes.Axes import draw [as 别名]
    def draw(self, renderer):
        # draw the background patch
        self.axesPatch.draw(renderer)
        self._frameon = False

        # add the projection matrix to the renderer
        self.M = self.get_proj()
        renderer.M = self.M
        renderer.vvec = self.vvec
        renderer.eye = self.eye
        renderer.get_axis_position = self.get_axis_position

        # Calculate projection of collections and zorder them
        zlist = [(col.do_3d_projection(renderer), col) for col in self.collections]
        zlist.sort()
        zlist.reverse()
        for i, (z, col) in enumerate(zlist):
            col.zorder = i

        # Calculate projection of patches and zorder them
        zlist = [(patch.do_3d_projection(renderer), patch) for patch in self.patches]
        zlist.sort()
        zlist.reverse()
        for i, (z, patch) in enumerate(zlist):
            patch.zorder = i

        axes = (self.w_xaxis, self.w_yaxis, self.w_zaxis)
        for ax in axes:
            ax.draw_pane(renderer)
        for ax in axes:
            ax.draw(renderer)

        Axes.draw(self, renderer)
开发者ID:ranjithtenz,项目名称:cis530,代码行数:35,代码来源:axes3d.py

示例3: draw

# 需要导入模块: from matplotlib.axes import Axes [as 别名]
# 或者: from matplotlib.axes.Axes import draw [as 别名]
    def draw(self, renderer):

        if self._parent is not None:
            self.axes.viewLim.set(self._parent.viewLim)
            self.set_position(self._parent.get_position())

        Axes.draw(self, renderer)
开发者ID:aplpy,项目名称:aplpy-experimental,代码行数:9,代码来源:axes.py

示例4: draw

# 需要导入模块: from matplotlib.axes import Axes [as 别名]
# 或者: from matplotlib.axes.Axes import draw [as 别名]
 def draw(self, *args):
     '''
     draw() is overridden here to allow the data transform to be updated
     before calling the Axes.draw() method.  This allows resizes to be
     properly handled without registering callbacks.  The amount of
     work done here is kept to a minimum.
     '''
     self._update_data_transform()
     Axes.draw(self, *args)
开发者ID:brodyfuchs,项目名称:EnvAnalysis,代码行数:11,代码来源:SkewT.py

示例5: draw

# 需要导入模块: from matplotlib.axes import Axes [as 别名]
# 或者: from matplotlib.axes.Axes import draw [as 别名]
 def draw(self, renderer, *args, **kwargs):
     if self._capture is None or not self._enabled:
         Axes.draw(self.axes, renderer, *args, **kwargs)
         self._capture = RenderCapture(self.axes, renderer)
     else:
         self.axes.axesPatch.draw(renderer, *args, **kwargs)
         self._capture.draw(renderer, *args, **kwargs)
         self.axes.xaxis.draw(renderer, *args, **kwargs)
         self.axes.yaxis.draw(renderer, *args, **kwargs)
         for s in self.axes.spines.values():
             s.draw(renderer, *args, **kwargs)
开发者ID:DougBurke,项目名称:glue,代码行数:13,代码来源:axescache.py

示例6: draw

# 需要导入模块: from matplotlib.axes import Axes [as 别名]
# 或者: from matplotlib.axes.Axes import draw [as 别名]
 def draw(self, renderer):
     self.axesPatch.draw(renderer)
     self._frameon = False
     self.M = self.get_proj()
     renderer.M = self.M
     renderer.vvec = self.vvec
     renderer.eye = self.eye
     renderer.get_axis_position = self.get_axis_position
     zlist = [(col.do_3d_projection(renderer), col) \
             for col in self.collections]
     zlist.sort()
     zlist.reverse()
     for i, (z, col) in enumerate(zlist):
         col.zorder = i
     zlist = [(patch.do_3d_projection(renderer), patch) \
             for patch in self.patches]
     zlist.sort()
     zlist.reverse()
     for i, (z, patch) in enumerate(zlist):
         patch.zorder = i
     self.w_xaxis.draw(renderer)
     self.w_yaxis.draw(renderer)
     self.w_zaxis.draw(renderer)
     Axes.draw(self, renderer)
开发者ID:,项目名称:,代码行数:26,代码来源:

示例7: draw

# 需要导入模块: from matplotlib.axes import Axes [as 别名]
# 或者: from matplotlib.axes.Axes import draw [as 别名]
 def draw(self, *args):
     '''Override Axes.draw() to first consider our buffer.'''
     self._check_buffer()
     Axes.draw(self, *args)
开发者ID:nejstastnejsistene,项目名称:ERPy,代码行数:6,代码来源:mpl.py


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