10

Any idea why the ylabel isn't center justified and how I might go about centering it?

ylabel not centered in plot Rendering text with LaTeX (text.usetex: True)

ylabel('Soil Moisture Sensitivity,\n(0.01 K m$^3$ m$^{-3}$)')

Tried adding \centering, didn't work.

4

1 回答 1

16

你试过了吗

ylabel('Soil Moisture Sensitivity,\n(0.01 K m$^3$ m$^{-3}$)', multialignment='center')?

如此处所示:http: //matplotlib.sourceforge.net/examples/pylab_examples/multiline.html

于 2012-04-13T16:56:45.613 回答