QuantumATK Forum
QuantumATK => General Questions and Answers => Topic started 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
-
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...).
-
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,
-
https://www.google.com/search?q=pylab+colorbar+font
3rd hit is the answer
-
Thank you very much!