Hello, I begin with matplotlib and I draw volume is a 3D view. It runs acoorectly but some behavior are not understood. Here is my source code: fig = plt.figure() ax = Axes3D(fig) print "long =",self.onevolume['long'] print "lat =",self.onevolume['lat'] print "upper =",self.onevolume['upper'] print "lower =",self.onevolume['lower'] ax.plot(self.onevolume['long'],self.onevolume['lat'],self.onevolume['upper']) ax.plot(self.onevolume['long'],self.onevolume['lat'],self.onevolume['lower']) for i in range(len(self.onevolume)): ax.plot([self.onevolume['long'][i],self.onevolume['long'][i]], [self.onevolume['lat'][i],self.onevolume['lat'][i]], [self.onevolume['lower'][i],self.onevolume['upper'][i]]) ax.set_xlabel('Longitude (deg)') ax.set_title('Volumic definition of ' + volume) print "axis=",ax.axis() canvas = FigureCanvas(fig) # a gtk.DrawingArea Here is the trace on my terminal: long = [-5.13888884 -4.04805565 -4.05249977 -3.75972223 -3.92777777 -4.0666666 -4.9000001 -5.13888884] lat = [-49.71111298 -49.4030571 -49.3955574 -49.4375 -50.34027863 -50.33333206 -49.76666641 -49.71111298] upper = [999 999 999 999 999 999 999 999] lower = [245 245 245 245 245 245 245 245] axis= (-0.095000000000000001, 0.089999999999999997, -0.095000000000000001, 0.089999999999999997) Then I dont'understand the results given by function axis() regarding the input values. Finally, label is not written on x axis, why ? Here is my figure: http://old.nabble.com/file/p32231816/volume.jpeg Than you for all suggestions
-- View this message in context: http://old.nabble.com/first-steps-with-matplotlib-tp32231816p32231816.html Sent from the matplotlib - users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users