From b9fd32310ee105e30214eb0244da602087fbfbe1 Mon Sep 17 00:00:00 2001 From: Alnotz Date: Mon, 25 Jul 2022 14:52:36 +0200 Subject: [PATCH] No-gui backend error fixed --- MatPlotLib/aglomerat.py | 2 +- MatPlotLib/masque_gaussien.py | 3 ++- MatPlotLib/matplotlibrc | 4 ++++ MatPlotLib/requirements.txt | 12 ++++++++++++ 4 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 MatPlotLib/matplotlibrc create mode 100644 MatPlotLib/requirements.txt diff --git a/MatPlotLib/aglomerat.py b/MatPlotLib/aglomerat.py index 0047aaf..822f105 100644 --- a/MatPlotLib/aglomerat.py +++ b/MatPlotLib/aglomerat.py @@ -104,4 +104,4 @@ for t in range(31): ttr="Itération :{:d}".format(t) ttr+="\nDensité : {:03.1f}%".format(M.sum()*100/M.size) title(ttr) - pause(0.99) \ No newline at end of file + pause(0.99) diff --git a/MatPlotLib/masque_gaussien.py b/MatPlotLib/masque_gaussien.py index 849cff6..ea91f21 100644 --- a/MatPlotLib/masque_gaussien.py +++ b/MatPlotLib/masque_gaussien.py @@ -13,4 +13,5 @@ for x in range(1,1000): image[x][:]=sin(x*2*pi/100)*ones([1000]) plt.figure() plt.imshow(image,cmap='gray') -plt.title("Sinusoïde de NdG") \ No newline at end of file +plt.title("Sinusoïde de NdG") +plt.pause(1.00) diff --git a/MatPlotLib/matplotlibrc b/MatPlotLib/matplotlibrc new file mode 100644 index 0000000..84df5ef --- /dev/null +++ b/MatPlotLib/matplotlibrc @@ -0,0 +1,4 @@ +## MatPlotLib RC +backend: gtk3cairo +backend_fallback: True +savefig.format: pdf diff --git a/MatPlotLib/requirements.txt b/MatPlotLib/requirements.txt new file mode 100644 index 0000000..a302ee2 --- /dev/null +++ b/MatPlotLib/requirements.txt @@ -0,0 +1,12 @@ +cycler==0.11.0 +fonttools==4.34.4 +kiwisolver==1.4.4 +matplotlib==3.5.2 +numpy==1.23.1 +packaging==21.3 +Pillow==9.2.0 +pycairo==1.21.0 +PyGObject==3.42.2 +pyparsing==3.0.9 +python-dateutil==2.8.2 +six==1.16.0