From 83bebc39e5fb7c42da7c289a32d55273f9bb96d5 Mon Sep 17 00:00:00 2001
From: Maxime MORGE <maxime.morge@univ-lille.fr>
Date: Mon, 3 Mar 2025 18:00:22 +0100
Subject: [PATCH] Generate pdf

---
 .idea/csv-editor.xml                      | 42 -----------------------
 src/dictator/dictator_draw_boxplot.py     |  2 +-
 src/dictator/dictator_draw_violin.py      |  2 +-
 src/dictator/dictator_temperature_draw.py |  2 +-
 src/guess/guess_draw_2loop.py             |  2 +-
 src/guess/guess_draw_3loop.py             |  2 +-
 src/guess/guess_draw_constant.py          |  2 +-
 src/rps/rps_draw_2loop.py                 |  2 +-
 src/rps/rps_draw_3loop.py                 |  2 +-
 src/rps/rps_draw_constant.py              |  2 +-
 10 files changed, 9 insertions(+), 51 deletions(-)

diff --git a/.idea/csv-editor.xml b/.idea/csv-editor.xml
index 5fc756a..4fb626a 100644
--- a/.idea/csv-editor.xml
+++ b/.idea/csv-editor.xml
@@ -87,48 +87,6 @@
             </Attribute>
           </value>
         </entry>
-        <entry key="$PROJECT_DIR$/data/guess/guess.1.csv">
-          <value>
-            <Attribute>
-              <option name="separator" value="," />
-            </Attribute>
-          </value>
-        </entry>
-        <entry key="$PROJECT_DIR$/data/guess/guess.2.csv">
-          <value>
-            <Attribute>
-              <option name="separator" value="," />
-            </Attribute>
-          </value>
-        </entry>
-        <entry key="$PROJECT_DIR$/data/guess/guess.csv">
-          <value>
-            <Attribute>
-              <option name="separator" value="," />
-            </Attribute>
-          </value>
-        </entry>
-        <entry key="$PROJECT_DIR$/data/guess/guess.old.csv">
-          <value>
-            <Attribute>
-              <option name="separator" value="," />
-            </Attribute>
-          </value>
-        </entry>
-        <entry key="$PROJECT_DIR$/data/guess/guess.strategy.csv">
-          <value>
-            <Attribute>
-              <option name="separator" value="," />
-            </Attribute>
-          </value>
-        </entry>
-        <entry key="$PROJECT_DIR$/data/ring/ring.2.a.csv">
-          <value>
-            <Attribute>
-              <option name="separator" value="," />
-            </Attribute>
-          </value>
-        </entry>
       </map>
     </option>
   </component>
diff --git a/src/dictator/dictator_draw_boxplot.py b/src/dictator/dictator_draw_boxplot.py
index 3bb4602..addb169 100644
--- a/src/dictator/dictator_draw_boxplot.py
+++ b/src/dictator/dictator_draw_boxplot.py
@@ -41,4 +41,4 @@ plt.ylabel("Share of money allocated to oneself")
 plt.title("Distribution of self-allocated share per model in the dictator game")
 
 # Sauvegarde et affichage
-plt.savefig("../../figures/dictator/dictator_boxplot.svg", format="svg")
\ No newline at end of file
+plt.savefig("../../figures/dictator/dictator_boxplot.pdf", format="pdf")
\ No newline at end of file
diff --git a/src/dictator/dictator_draw_violin.py b/src/dictator/dictator_draw_violin.py
index 6b29ab5..e169e85 100644
--- a/src/dictator/dictator_draw_violin.py
+++ b/src/dictator/dictator_draw_violin.py
@@ -45,4 +45,4 @@ plt.title("Distribution of personal share by model in the dictator game")
 plt.legend()
 
 # Save and display
-plt.savefig("../../figures/dictator/dictator_violin.svg", format="svg")
\ No newline at end of file
+plt.savefig("../../figures/dictator/dictator_violin.pdf", format="pdf")
\ No newline at end of file
diff --git a/src/dictator/dictator_temperature_draw.py b/src/dictator/dictator_temperature_draw.py
index e490b18..b502324 100644
--- a/src/dictator/dictator_temperature_draw.py
+++ b/src/dictator/dictator_temperature_draw.py
@@ -50,4 +50,4 @@ plt.ylim(20, 70)  # Ensure the y-axis is between 0 and 100
 plt.grid(True)
 
 # Save the figure as an SVG file
-plt.savefig('../../figures/dictator/dictator_temperature.svg', format='svg')
\ No newline at end of file
+plt.savefig('../../figures/dictator/dictator_temperature.pdf', format='pdf')
\ No newline at end of file
diff --git a/src/guess/guess_draw_2loop.py b/src/guess/guess_draw_2loop.py
index a05b901..7f513c2 100644
--- a/src/guess/guess_draw_2loop.py
+++ b/src/guess/guess_draw_2loop.py
@@ -70,4 +70,4 @@ plt.grid(True)
 plt.ylim(0, 1)  # Points are between 0 and 2
 
 # Save the figure as an SVG file
-plt.savefig('../../figures/guess/guess_2loop.svg', format='svg')
+plt.savefig('../../figures/guess/guess_2loop.pdf', format='pdf')
diff --git a/src/guess/guess_draw_3loop.py b/src/guess/guess_draw_3loop.py
index 9415e9c..6d91f4b 100644
--- a/src/guess/guess_draw_3loop.py
+++ b/src/guess/guess_draw_3loop.py
@@ -70,4 +70,4 @@ plt.xlim(1, 10)
 plt.ylim(0, 1)  # Points are between 0 and 2
 
 # Save the figure as an SVG file
-plt.savefig('../../figures/guess/guess_3loop.svg', format='svg')
+plt.savefig('../../figures/guess/guess_3loop.pdf', format='pdf')
diff --git a/src/guess/guess_draw_constant.py b/src/guess/guess_draw_constant.py
index 053640e..7515cc5 100644
--- a/src/guess/guess_draw_constant.py
+++ b/src/guess/guess_draw_constant.py
@@ -64,4 +64,4 @@ plt.grid(True)
 plt.ylim(0, 1)  # Points are between 0 and 1
 
 # Save the figure as an SVG file
-plt.savefig('../../figures/guess/guess_constant.svg', format='svg')
+plt.savefig('../../figures/guess/guess_constant.pdf', format='pdf')
diff --git a/src/rps/rps_draw_2loop.py b/src/rps/rps_draw_2loop.py
index 39e3400..926e4f8 100644
--- a/src/rps/rps_draw_2loop.py
+++ b/src/rps/rps_draw_2loop.py
@@ -68,4 +68,4 @@ plt.grid(True)
 plt.ylim(0, 2)  # Points are between 0 and 2
 
 # Save the figure as an SVG file
-plt.savefig('../../figures/rps/rps_2loop.svg', format='svg')
+plt.savefig('../../figures/rps/rps_2loop.pdf', format='pdf')
diff --git a/src/rps/rps_draw_3loop.py b/src/rps/rps_draw_3loop.py
index d49c06a..ff09547 100644
--- a/src/rps/rps_draw_3loop.py
+++ b/src/rps/rps_draw_3loop.py
@@ -67,4 +67,4 @@ plt.grid(True)
 plt.ylim(0, 2)  # Points are between 0 and 2
 
 # Save the figure as an SVG file
-plt.savefig('../../figures/rps/rps_3loop.svg', format='svg')
+plt.savefig('../../figures/rps/rps_3loop.pdf', format='pdf')
diff --git a/src/rps/rps_draw_constant.py b/src/rps/rps_draw_constant.py
index bf58b11..ffd9866 100644
--- a/src/rps/rps_draw_constant.py
+++ b/src/rps/rps_draw_constant.py
@@ -63,4 +63,4 @@ plt.grid(True)
 plt.ylim(0, 2)  # Points are between 0 and 2
 
 # Save the figure as an SVG file
-plt.savefig('../../figures/rps/rps_constant.svg', format='svg')
+plt.savefig('../../figures/rps/rps_constant.pdf', format='pdf')
-- 
GitLab