[Matplotlib-users] for a log y axis, set_major_formatter then twiny() removes the set_major_formatter

2012-08-19 Thread Christopher Graves
Hi I do not think this is the expected behavior. First, run the following: from pylab import * plot([0,3],[0.2,0.7]) ax1 = gca() ax1.set_yscale('log') gca().yaxis.set_major_formatter(FormatStrFormatter('$%g$')) #ax2 = ax1.twiny() #ax2.set_xlim(ax1.get_xlim()) show() You will see that t

[Matplotlib-users] axis default formatting with strange scientific-like notation

2012-08-19 Thread Christopher Graves
Using matplotlib 1.1.1. If one runs the following code: from pylab import * plot([19.185,19.187],[0.0009,0.0011],'b.') show() The x-axis is labelled 0.0005, 0.0010, 0.0015 etc +1.9184e1 This is unreadable and does not seem like a good default behavior! One can add gca().xaxis.set_major_form

Re: [Matplotlib-users] how to maintain fractional minor tick spacing

2012-06-21 Thread Christopher Graves
On Tue, Mar 27, 2012 at 3:31 AM, Mike Kaufman wrote: > On 3/26/12 12:49 PM, Christopher Graves wrote: > >> On Sun, Mar 11, 2012 at 2:32 PM, Christopher Graves >> mailto:christoph.gra...@gmail.com>> wrote: >> > > Try this: >> >>from

Re: [Matplotlib-users] how to maintain fractional minor tick spacing

2012-06-20 Thread Christopher Graves
On Tue, Mar 27, 2012 at 3:31 AM, Mike Kaufman wrote: > On 3/26/12 12:49 PM, Christopher Graves wrote: > >> On Sun, Mar 11, 2012 at 2:32 PM, Christopher Graves >> mailto:christoph.gra...@gmail.com>> wrote: >> > > Try this: >> >>from

Re: [Matplotlib-users] how to maintain fractional minor tick spacing

2012-04-12 Thread Christopher Graves
On Thu, Apr 12, 2012 at 5:20 PM, Benjamin Root wrote: > > > On Thu, Mar 29, 2012 at 5:53 AM, Christopher Graves < > christoph.gra...@gmail.com> wrote: > >> >> >> On Tue, Mar 27, 2012 at 3:31 AM, Mike Kaufman wrote: >> >>> On 3/26/12 12:49

Re: [Matplotlib-users] how to maintain fractional minor tick spacing

2012-03-29 Thread Christopher Graves
On Tue, Mar 27, 2012 at 3:31 AM, Mike Kaufman wrote: > On 3/26/12 12:49 PM, Christopher Graves wrote: > >> On Sun, Mar 11, 2012 at 2:32 PM, Christopher Graves >> mailto:christoph.gra...@gmail.com>> wrote: >> > > Try this: >> >>from

Re: [Matplotlib-users] how to maintain fractional minor tick spacing

2012-03-26 Thread Christopher Graves
On Sun, Mar 11, 2012 at 2:32 PM, Christopher Graves < christoph.gra...@gmail.com> wrote: > On Sun, Mar 11, 2012 at 2:06 PM, Mike Kaufman wrote: > >> On 3/11/12 8:14 AM, cgraves wrote: >> >>> >>> Hi, here is an example script which places minor ticks

Re: [Matplotlib-users] how to maintain fractional minor tick spacing

2012-03-11 Thread Christopher Graves
On Sun, Mar 11, 2012 at 2:06 PM, Mike Kaufman wrote: > On 3/11/12 8:14 AM, cgraves wrote: > >> >> Hi, here is an example script which places minor ticks with 2 per major >> tick >> (minor tick spacing is "fractional" of major tick spacing with relative >> interval of 1/2): >> >> from pylab import