pywcsgrid2 icon indicating copy to clipboard operation
pywcsgrid2 copied to clipboard

Coordinate (tick label) font size

Open pjcigan opened this issue 12 years ago • 2 comments

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!

pjcigan avatar Feb 09 '13 00:02 pjcigan

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.

leejjoon avatar Feb 13 '13 01:02 leejjoon

Excellent, works like a charm! Thanks a ton

pjcigan avatar Feb 13 '13 18:02 pjcigan