QuantumATK Forum

QuantumATK => General Questions and Answers => Topic started by: jerry on May 31, 2013, 12:44

Title: change the size of the scale digit
Post by: jerry on May 31, 2013, 12:44
Dear,

The "fontsize=12" can used to change the size of "'Energy (eV)" in the picture plotted by ATK. For instance, pylab.ylabel('Energy (eV)',fontsize=12,family='sans-serif').

How can I change the size of the scale digit (0,50,-1.5, 1.5]) in picture using the following code ? pylab.axis([0,50,-1.5, 1.5])
where (0,50) is for the Y axis and (-1.5, 1.5) is for the X axis.

Best regards
Title: Re: change the size of the scale digit
Post by: Anders Blom on May 31, 2013, 14:30
pylab.yticks(fontsize=12,family="sans-serif")
and same for xticks

Google is quite helpful for these things. Searching for
"pylab font size axis"
the right answer (http://ask.sagemath.org/question/958/font-size-in-matplotlib) is available as the first hit (well, for me anyway, these days Google personalizes your search results...).

Title: Re: change the size of the scale digit
Post by: jerry on May 31, 2013, 14:55
Thank you very much! That is very helpful.

But how can I change the fontsize of the ticks in the color bar? (pylab.colorbar())

Best regards,
Title: Re: change the size of the scale digit
Post by: Anders Blom on May 31, 2013, 17:40
https://www.google.com/search?q=pylab+colorbar+font
3rd hit is the answer
Title: Re: change the size of the scale digit
Post by: jerry on June 2, 2013, 03:16
Thank you very much!