nebius/SWE-bench-extra huggingface dataset:
Repository: Axelrod-Python/Axelrod

Issue:
Make log scale in eco plot optional
Just nice to be able to change it back to a normal scale if we don't want to reproduce for a power of ten turns. (PR incoming, it's a 1 liner.)

Comments:

Patch:
diff --git a/CHANGES.txt b/CHANGES.md
similarity index 98%
rename from CHANGES.txt
rename to CHANGES.md
index 083c60a5..c4b07ffe 100644
--- a/CHANGES.txt
+++ b/CHANGES.md
@@ -3,7 +3,7 @@
 Internal improvements, progress bar, minor interface change
 
 Here are all the commits for this PR:
-https://github.com/Axelrod-Python/Axelrod/compare/v0.0.31...master
+https://github.com/Axelrod-Python/Axelrod/compare/v0.0.31...v1.0.0
 
 This release is the first major release stating the stability and maturity of
 the library.
diff --git a/axelrod/plot.py b/axelrod/plot.py
index ca51518b..71dbaa5c 100644
--- a/axelrod/plot.py
+++ b/axelrod/plot.py
@@ -198,7 +198,7 @@ class Plot(object):
 
     # Ecological Plot
 
-    def stackplot(self, eco, title=None):
+    def stackplot(self, eco, title=None, logscale=True):
 
         if not self.matplotlib_installed:
             return None
@@ -231,6 +231,7 @@ class Plot(object):
         ax.tick_params(direction='out')
         ax.set_yticklabels([])
 
-        ax.set_xscale('log')
+        if logscale:
+            ax.set_xscale('log')
 
         return figure


Test patch:
diff --git a/axelrod/tests/unit/test_plot.py b/axelrod/tests/unit/test_plot.py
index d30026c6..9f936627 100644
--- a/axelrod/tests/unit/test_plot.py
+++ b/axelrod/tests/unit/test_plot.py
@@ -184,6 +184,8 @@ class TestPlot(unittest.TestCase):
             self.assertIsInstance(
                 plot.stackplot(eco, title="dummy title"),
                 matplotlib.pyplot.Figure)
+            self.assertIsInstance(
+                plot.stackplot(eco, logscale=False), matplotlib.pyplot.Figure)
         else:
             self.skipTest('matplotlib not installed')