Python Forum
How to extend the sclale of a graph?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to extend the sclale of a graph?
#1
Hello,

I would like to create a ,,nicer" graph with matplot lib. How can I define, that on the generated x axis, the scale would be larger and also the text would be more frequent.
Here is the code:
    plt.plot_date(x=days_GYOR, y=intensity_GYOR_dB, fmt="ro")
    plt.title("GYOR intensity datas")
    plt.ylabel("Intensity")
    plt.xlabel("Date")
    plt.grid(True)
    plt.savefig('../MLI_values/GYOR.png')
Reply
#2
is this what you're looking for: https://matplotlib.org/api/_as_gen/matpl...ate%20axis
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  View and extend native python class PythonDev 2 1,647 Oct-24-2020, 08:59 PM
Last Post: Gribouillis
  Why the this extend example is printing 2 two times? sbabu 1 1,476 Jan-12-2020, 07:30 AM
Last Post: Gribouillis
  Extend the scale Krszt 1 2,691 Nov-05-2018, 01:16 PM
Last Post: Gribouillis
  generate filename of value and extend Marre 2 2,806 Oct-01-2018, 07:31 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020