I want to plot a large data range but have ability to zoom in and gain resolution. I need to use custom major and minor tick formatting therefore I lose the ability to have them set dynamically with the zoom level. Is there a practical solution to this problem?
You just need to create your own
tick formatter and then attach it to the
This example has everything you need. Essentially, create a function which takes the value of the tick, and returns what you would like the tick label to be - call it
my_formatter, and then do this:
ticker.FuncFormatter(my_function) creates the custom formatter for you.