compdyn / partmc

Particle-resolved stochastic atmospheric aerosol model
http://lagrange.mechse.illinois.edu/partmc/
GNU General Public License v2.0
28 stars 16 forks source link

improve text baseline in mpl_helper #63

Closed jcurtis2 closed 6 years ago

jcurtis2 commented 7 years ago

Added preview=True option to help with the baseline of text which was incorrect when there were labels with subscripts such as chemical symbols or a variables with subscripts. This does require that the preview package is present.

http://stackoverflow.com/questions/40424249/vertical-alignment-of-matplotlib-legend-labels-with-latex-math http://matplotlib.org/2.0.0/examples/pylab_examples/usetex_baseline_test.html