Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project!

## [Matplotlib-users] Settling y-axis scaling

 [Matplotlib-users] Settling y-axis scaling From: Vineet Jain - 2004-07-29 14:00:41 ```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 ```

 [Matplotlib-users] Settling y-axis scaling From: Vineet Jain - 2004-07-29 14:00:41 ```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 ```
 RE: [Matplotlib-users] Settling y-axis scaling From: Vineet Jain - 2004-07-29 14:56:30 ```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@... [mailto:matplotlib-users-admin@...]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@... https://lists.sourceforge.net/lists/listinfo/matplotlib-users ```
 Re: [Matplotlib-users] Settling y-axis scaling From: John Hunter - 2004-07-29 16:14:26 ```>>>>> "Vineet" == Vineet Jain writes: Vineet> Ok Figured out the solution but still have a problem. Vineet> There is a function get_ylim which gets you the ymin and Vineet> ymax values. I'm plotting multiple lines on the same axes Vineet> object. However the get_ylim returns different values Vineet> after each plot. I'm currently having to do it a numbe rof Vineet> times and reset my min and max values. Is there a way to Vineet> just do it once where it accounts for all lines plotted on Vineet> the axis? How about calling the function only once after you have added all the lines to your plot? Will this work for you? JDH ```