[Matplotlib-users] how add axes scale to my plot?

2008-07-30 Thread sa6113

I am using matplotlib to draw and show my plot, now I want to know how may I
add manual axes scale to it.
I need to manually show the axes scale (from min to max value that I have)
the below is some part of my code.
.
.
.
from   matplotlib.figureimport Figure

self.fig = Figure(  figsize =5, 4 ))
yLine   = self.ax.plot(  xData,  yData,  'ro-', linewidth = 2   )
fitLine = self.ax.plot(  xData,  fitData,'bo-', linewidth = 1   )
self.ax.set_xlabel('X')
self.ax.set_ylabel('Y )
-- 
View this message in context: 
http://www.nabble.com/how-add-axes-scale-to-my-plot--tp18727840p18727840.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] how add axes scale to my plot?

2008-07-30 Thread Manuel Metz
sa6113 wrote:
 I am using matplotlib to draw and show my plot, now I want to know how may I
 add manual axes scale to it.
 I need to manually show the axes scale (from min to max value that I have)
 the below is some part of my code.
 .
 .
 .
 from   matplotlib.figureimport Figure
 
 self.fig = Figure(  figsize =5, 4 ))
 yLine   = self.ax.plot(  xData,  yData,  'ro-', linewidth = 2   )
 fitLine = self.ax.plot(  xData,  fitData,'bo-', linewidth = 1   )
 self.ax.set_xlabel('X')
 self.ax.set_ylabel('Y )

Maybe this is what you need:

self.ax.set_xlim(xmin, xmax)

?




-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users