leejjoon / pywcsgrid2

astromonical fits image for python matplotlib
http://leejjoon.github.com/pywcsgrid2/
MIT License
25 stars 13 forks source link

Coordinate (tick label) font size #13

Open pjcigan opened 11 years ago

pjcigan commented 11 years ago

Hi, is there a way to change the font size of the axis tick labels? i.e., can one make the coordinates larger or smaller? The set_ticklabel1_type() command doesn't seem to recognize any logical kwarg choices for 'size'.

I can change ALL of the plot label sizes with matplotlib.rc('xtick', labelsize=....), but doesn't seem to be a way to have different subplots with different fontsizes.

P.S. - Thanks! This module has come in soooo handy!

leejjoon commented 11 years ago

You may do something like

ax.axis["bottom"].major_ticklabels.set(fontsize=20)

For more details, see below (pywcsgrid2 is based on axisartist toolkit)

http://matplotlib.org/mpl_toolkits/axes_grid/users/axisartist.html

It may be a good idea to improve the api of set_ticklabel1_type though.

pjcigan commented 11 years ago

Excellent, works like a charm! Thanks a ton