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)

?




-------------------------------------------------------------------------
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=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to