Re: [Matplotlib-users] tick formatter - floating axis

2010-11-12 Thread Jae-Joon Lee
With axisartist toolkit, no. I may add a simple wrapper around matplotlit's original formatter classes. Regards, -JJ On Thu, Nov 11, 2010 at 11:17 PM, Stefan Mauerberger wrote: > Hi JJ, > > thanks a lot for your Answer. Now I have understand how this works and > created my one formatter: > > c

Re: [Matplotlib-users] tick formatter - floating axis

2010-11-11 Thread Stefan Mauerberger
Hi JJ, thanks a lot for your Answer. Now I have understand how this works and created my one formatter: class MyFormatter(object): def __init__(self, fmt='$%f$'): self.fmt = fmt def __call__(self, direction, factor, values): return [self.fmt % v for v in values]

Re: [Matplotlib-users] tick formatter - floating axis

2010-11-10 Thread Jae-Joon Lee
How do you want your ticklabels formatted? If axisartist does not provide a formatter that fits your need, you can create a custom formatter. Formatter for axisartist can be any callable object with following signature. def Formatter(direction, factor, values): # ... return list_of_string