[Python] matplotlib: Setting single title for all figures (not subplots)

Discussão em 'Python' iniciado por Stack, Setembro 15, 2024.

  1. Stack

    Stack Membro Participativo

    I want to give all the figures in my code a single title #Variable_cycles. Figures are not subplots but plotted separately. I am using %matplotlib to show plots in separate window. As far as i know plt.rcParams has no such key

    import matplotlib.pyplot as plt

    %matplotlib

    plt.figure(1), plt.scatter(x,y,marker='o'),
    plt.title("Variable_cycles"),
    plt.show

    plt.figure(2),
    plt.scatter(x,y,marker='*'),
    plt.title("Variable_cycles"),
    plt.show

    Continue reading...

Compartilhe esta Página