File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77from wxPython .wx import *
88import matplotlib .axes3d
9+ import matplotlib .mlab
910from matplotlib import numerix as nx
1011from matplotlib .figure import Figure
1112from matplotlib .backends .backend_wxagg import FigureCanvasWxAgg , FigureManager , NavigationToolbar2WxAgg
@@ -38,7 +39,7 @@ def plot3d(self):
3839 ax3d = matplotlib .axes3d .Axes3D (self .fig )
3940 plt = self .fig .axes .append (ax3d )
4041
41- delta = nx .pi / 99 .0
42+ delta = nx .pi / 199 .0
4243 u = nx .arange (0 , 2 * nx .pi + (delta * 2 ), delta * 2 )
4344 v = nx .arange (0 , nx .pi + delta , delta )
4445
@@ -49,7 +50,7 @@ def plot3d(self):
4950
5051 #ax3d.plot_wireframe(x,y,z)
5152 surf = ax3d .plot_surface (x , y , z )
52- surf .set_array (nx . arange (0 , 1.0 , 1 / 100.0 ))
53+ surf .set_array (matplotlib . mlab . linspace (0 , 1.0 , len ( v ) ))
5354
5455 ax3d .set_xlabel ('X' )
5556 ax3d .set_ylabel ('Y' )
You can’t perform that action at this time.
0 commit comments