matplotlib tick axis notation with superscript

后端 未结 2 1955
离开以前
离开以前 2020-12-11 10:59

I would like to produce some plot over the frequencies. I want to have an x-axis with superscript notation like in here. In addition I need vertical lines with vertical ann

2条回答
  •  囚心锁ツ
    2020-12-11 11:50

    I'm just shooting in the dark, but looks like xlabel takes a variety of options:

    http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.xlabel

    When I went to:

    http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.text

    I noticed that there is a verticalalignment option. Maybe that's what you need?

提交回复
热议问题