Re: [Matplotlib-users] Setting y limits in a log scale scatter plot

2013-10-08 Thread Benjamin Root
On Thu, Oct 3, 2013 at 1:05 PM, dilpreet singh  wrote:

> Hi
>
> I am plotting a scatter plot where y axis has a log scale but in the graph
> the y axis always starts from 10 to the power -1 . I tried setting the
> limit with set_ylim() but i am not sure what value to give within this
> method since its a log scale . Is there a way i can start y axis from 10 to
> the power -0.25  .
>
>
> Thanks
> Dilpreet
>
>
The values for set_ylim() and set_xlim() are the raw data values. So, if
you want to start from 10**-0.25, you do:

ax.set_ylim(bottom=10**-0.25)

Do note that once you set the limits, the auto-detection of the limits turn
off. So, it is best to issue these sorts of commands after you finish
plotting all the data.
I hope that helps!
Ben Root



>
> --
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Setting y limits in a log scale scatter plot

2013-10-03 Thread dilpreet singh
Hi

I am plotting a scatter plot where y axis has a log scale but in the graph
the y axis always starts from 10 to the power -1 . I tried setting the
limit with set_ylim() but i am not sure what value to give within this
method since its a log scale . Is there a way i can start y axis from 10 to
the power -0.25  .


Thanks
Dilpreet
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users