aymeric-spiga / planetoplot

a cool python-based tool to plot stuff and explore data
https://github.com/aymeric-spiga/planetoplot/blob/master/README.md
GNU General Public License v2.0
10 stars 4 forks source link

use of --modx #12

Closed jvatantollone closed 4 years ago

jvatantollone commented 6 years ago

When trying to use --modx option I get another UnboundLocalError

/path/to/planetoplot/modules/ppplot.py", line 971, in make self.ax = labelmodulo(ax,self.modx) UnboundLocalError: local variable 'ax' referenced before assignment

I tried to fix it with self.ax = labelmodulo(self.ax,self.modx) but then x axis is blank ...

jvatantollone commented 4 years ago

This has been solved thanks to S.Guerlet pointing that this issue was still open. Was actually linked to #10 (compatibility with Matplotlib updates). Solution based on a alternative answer of https://stackoverflow.com/questions/11244514/modify-tick-label-text