Setting y limits in a log scale scatter plot

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

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

ยทยทยท

On Thu, Oct 3, 2013 at 1:05 PM, dilpreet singh <giggs102@...287...> wrote:

------------------------------------------------------------------------------
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