Re: [Matplotlib-users] Setting x scale manually, but letting y scale automatic within the current x-axis

2012-02-06 Thread Pål Gunnar Ellingsen
Hi I understand that it would be hard to implement, as it requires that all the points are checked, which for a arbitrary plot is not easy. Though is this not what is already done for the normal autoscale, or have I misunderstood how the normal autoscale is done? I would like to have this as a

Re: [Matplotlib-users] Setting x scale manually, but letting y scale automatic within the current x-axis

2012-02-06 Thread Benjamin Root
On Mon, Feb 6, 2012 at 4:47 AM, Pål Gunnar Ellingsen paa...@gmail.comwrote: Hi I understand that it would be hard to implement, as it requires that all the points are checked, which for a arbitrary plot is not easy. Though is this not what is already done for the normal autoscale, or have I

Re: [Matplotlib-users] Setting x scale manually, but letting y scale automatic within the current x-axis

2012-02-06 Thread Pål Gunnar Ellingsen
Hi That was a very nice explanation of how autoscale works, thank you very much :D After now understanding how the function autoscale function works, I see that this would be a major change in the code, as it would require the axes to know all of the bounding boxes, and not only one of them. As

[Matplotlib-users] Setting x scale manually, but letting y scale automatic within the current x-axis

2012-02-03 Thread Pål Gunnar Ellingsen
Hi I've got a plot, containing a graph. I would like to look at certain parts of it. To do this I zoom in on the x-axis using set_xlim() Then I would like to call autoscale(axis='y') and have matplotlib autoscale the y axis within the current x-axis. I've tried several ways of doing this, both

Re: [Matplotlib-users] Setting x scale manually, but letting y scale automatic within the current x-axis

2012-02-03 Thread Benjamin Root
On Friday, February 3, 2012, Pål Gunnar Ellingsen paa...@gmail.com wrote: Hi I've got a plot, containing a graph. I would like to look at certain parts of it. To do this I zoom in on the x-axis using set_xlim() Then I would like to call autoscale(axis='y') and have matplotlib autoscale the

Re: [Matplotlib-users] Setting x scale manually, but letting y scale automatic within the current x-axis

2012-02-03 Thread Pål Gunnar Ellingsen
Hi Thank you for trying to help me, though I can't see how aspect is going to help me. As I understand of the documentation, it would require me to know the relationship between x and y, which I don't. I can calculate it, but since it varies between each change in xlimits and different plot, it

Re: [Matplotlib-users] Setting x scale manually, but letting y scale automatic within the current x-axis

2012-02-03 Thread Benjamin Root
On Fri, Feb 3, 2012 at 9:15 AM, Pål Gunnar Ellingsen paa...@gmail.comwrote: Hi Thank you for trying to help me, though I can't see how aspect is going to help me. As I understand of the documentation, it would require me to know the relationship between x and y, which I don't. I can

Re: [Matplotlib-users] Setting x scale manually, but letting y scale automatic within the current x-axis

2012-02-03 Thread Pål Gunnar Ellingsen
Hi Yes you've understood my problem correctly. Let me know if there is anything I can do to help solve this issue. Regards Pål On 3 February 2012 17:07, Benjamin Root ben.r...@ou.edu wrote: On Fri, Feb 3, 2012 at 9:15 AM, Pål Gunnar Ellingsen paa...@gmail.comwrote: Hi Thank you for

Re: [Matplotlib-users] Setting x scale manually, but letting y scale automatic within the current x-axis

2012-02-03 Thread Eric Firing
On 02/03/2012 06:07 AM, Benjamin Root wrote: On Fri, Feb 3, 2012 at 9:15 AM, Pål Gunnar Ellingsen paa...@gmail.com mailto:paa...@gmail.com wrote: Hi Thank you for trying to help me, though I can't see how aspect is going to help me. As I understand of the documentation, it