Settling y-axis scaling

couple of questions on:
1. Is there any way to increase the y axis min by i% and y axis max by j%
where y axis min and y axis max are automatically calculated by matplotlib.
I have to plot many charts and if I calculate the min and max myself and
then use self.axMiddle.set_ylim() to set the values it takes twice as much
time to generate the chart.

2. Alternatively, is there a way to get what the current ymin and ymax
values are then I can use set_ylim to updated those

Ok Figured out the solution but still have a problem.

There is a function get_ylim which gets you the ymin and ymax values. I'm
plotting multiple lines on the same axes object. However the get_ylim
returns different values after each plot. I'm currently having to do it a
numbe rof times and reset my min and max values. Is there a way to just do
it once where it accounts for all lines plotted on the axis?

Thanks,

ยทยทยท

-----Original Message-----
From: matplotlib-users-admin@lists.sourceforge.net
[mailto:matplotlib-users-admin@lists.sourceforge.net]On Behalf Of Vineet
Jain
Sent: Thursday, July 29, 2004 8:48 AM
To: matplotlib-users
Subject: [Matplotlib-users] Settling y-axis scaling

couple of questions on:
1. Is there any way to increase the y axis min by i% and y axis max by j%
where y axis min and y axis max are automatically calculated by matplotlib.
I have to plot many charts and if I calculate the min and max myself and
then use self.axMiddle.set_ylim() to set the values it takes twice as much
time to generate the chart.

2. Alternatively, is there a way to get what the current ymin and ymax
values are then I can use set_ylim to updated those

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users