示例#1
0
 def create_axes(self):
     self.w_xaxis = axis3d.XAxis('x', self.xy_viewLim.intervalx,
                                 self.xy_dataLim.intervalx, self)
     self.w_yaxis = axis3d.YAxis('y', self.xy_viewLim.intervaly,
                                 self.xy_dataLim.intervaly, self)
     self.w_zaxis = axis3d.ZAxis('z', self.zz_viewLim.intervalx,
                                 self.zz_dataLim.intervalx, self)
示例#2
0
    def _init_axis(self):
        '''Init 3d axes; overrides creation of regular X/Y axes'''
        self.w_xaxis = axis3d.XAxis('x', self.xy_viewLim.intervalx,
                            self.xy_dataLim.intervalx, self)
        self.xaxis = self.w_xaxis
        self.w_yaxis = axis3d.YAxis('y', self.xy_viewLim.intervaly,
                            self.xy_dataLim.intervaly, self)
        self.yaxis = self.w_yaxis
        self.w_zaxis = axis3d.ZAxis('z', self.zz_viewLim.intervalx,
                            self.zz_dataLim.intervalx, self)
        self.zaxis = self.w_zaxis

        for ax in self.xaxis, self.yaxis, self.zaxis:
            ax.init3d()