Python Forum

Full Version: How to extend the sclale of a graph?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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')