|
From: zhangtao <tao...@gm...> - 2014-11-15 03:53:32
|
I think that "1e4" is a offset text, and not a part of ax2's yticklabels, so any color or font settings for yticklabels will not affect it. It's seems the offset text only uses matplotlib's default rcParams to draw, so my solution is to change rcParams. Try add these 4 lines before your plot code: import matplotlib as mpl mpl.rcParams['ytick.labelsize']='18' mpl.rcParams['ytick.color']='r' mpl.rcParams['font.sans-serif']='Arial' What you set here will become default settings of matplotlib. For more details of rcParams, check this: http://matplotlib.org/users/customizing.html <http://matplotlib.org/users/customizing.html> I hope this will solve your problems. -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Problem-with-ticklabel-tp44376p44384.html Sent from the matplotlib - users mailing list archive at Nabble.com. |