how add axes scale to my plot?

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.figure import 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.

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.figure import 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)

?

No, unfortuantly matplotlib.axes dosen't have this attribute.

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.figure import 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--tp18727840p18786828.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

You can find demos in matplotlib examples of set_xlim() :

in manual_axis.py :

fig = figure(facecolor='white')
ax = fig.add_subplot(111, frame_on=False)
ax.plot(x, y, 'd', markersize=8, markerfacecolor='blue')
ax.set_xlim(0, 200)
ax.set_ylim(-1.5, 1.5)

···

On Sat, Aug 2, 2008 at 4:18 AM, sa6113 <s.payandeh@...287...> wrote:

No, unfortuantly matplotlib.axes dosen't have this attribute.