Author Topic: change the size of the scale digit  (Read 3986 times)

0 Members and 1 Guest are viewing this topic.

Offline jerry

  • Heavy QuantumATK user
  • ***
  • Posts: 85
  • Reputation: 0
    • View Profile
change the size of the scale digit
« 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

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: change the size of the scale digit
« Reply #1 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 is available as the first hit (well, for me anyway, these days Google personalizes your search results...).

« Last Edit: May 31, 2013, 14:32 by Anders Blom »

Offline jerry

  • Heavy QuantumATK user
  • ***
  • Posts: 85
  • Reputation: 0
    • View Profile
Re: change the size of the scale digit
« Reply #2 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,

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: change the size of the scale digit
« Reply #3 on: May 31, 2013, 17:40 »

Offline jerry

  • Heavy QuantumATK user
  • ***
  • Posts: 85
  • Reputation: 0
    • View Profile
Re: change the size of the scale digit
« Reply #4 on: June 2, 2013, 03:16 »
Thank you very much!