|
From: Benjamin R. <ben...@ou...> - 2013-10-08 13:21:19
|
On Thu, Oct 3, 2013 at 1:05 PM, dilpreet singh <gig...@gm...> 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |