problem / bug with LogLocator in rev8732

Hello list,

I run into trouble with the resent svn version using logarithmic scaling as
before. This is probably due to the changes from rev 8730 to 8732, where in
the ticker,py the line

ticklocs = self._transform. ...

was added.

Running my program I get the following AttributeError:
  File "/scratch/michler/SOFT/lib/python2.6/site-
packages/matplotlib/ticker.py", line 1272, in __call__
    ticklocs = self._transform.inverted().transform(decades)
AttributeError: LogLocator instance has no attribute '_transform'

Did I miss anything or is this new feature in an unstable state?

Kind regards,
Matthias

Hello list,

I would like to propose the attached patch for the error I encountered
recently.

Could anybody check this, please?

Kind regards and thanks in advance,
Matthias

ticker_rev8732.patch (590 Bytes)

···

On Thursday October 7 2010 12:06:26 Matthias Michler wrote:

Hello list,

I run into trouble with the resent svn version using logarithmic scaling as
before. This is probably due to the changes from rev 8730 to 8732, where in
the ticker,py the line

ticklocs = self._transform. ...

was added.

Running my program I get the following AttributeError:
  File "/scratch/michler/SOFT/lib/python2.6/site-
packages/matplotlib/ticker.py", line 1272, in __call__
    ticklocs = self._transform.inverted().transform(decades)
AttributeError: LogLocator instance has no attribute '_transform'

Did I miss anything or is this new feature in an unstable state?

Thanks for bringing this to my attention. The fix was for symlog,
but inadvertently broke log. Your suggested fix is nice, but it
doesn’t have exactly the same behavior as what it used to do. My
fix (in r8733) is to basically restore the old code in the case of
regular log, and only use the new code for symlog.

Mike
···

http://p.sf.net/sfu/beautyoftheweb


Matplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-users