How do I change the font size for the default coordinates inmatplotlib?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Carl

    How do I change the font size for the default coordinates inmatplotlib?

    I've searched the user manual (and this forum) but I don't see
    anything that helps.
  • attn.steven.kuo@gmail.com

    #2
    Re: How do I change the font size for the default coordinates inmatplotlib?

    On Mar 20, 8:20 pm, Carl <carlwenr...@gm ail.comwrote:
    I've searched the user manual (and this forum) but I don't see
    anything that helps.


    Did you mean the font size for the ticks or for
    the labels? Here's an example:

    from pylab import *

    x = arange(0, 2*pi, 0.01)
    y = sin(2*pi*x)

    rcParams.update ({'xtick.labels ize': 5, 'ytick.labelsiz e': 10})

    subplot(111)
    plot(x,y)
    ylabel("Vert", fontsize=15)
    xlabel("Horiz", fontsize=20)
    show()

    --
    Hope this helps,
    Steven

    Comment

    Working...