From e8e3c572694f949a92115822bafbc1b6faed2a9e Mon Sep 17 00:00:00 2001 From: sloosvel Date: Mon, 20 Mar 2023 11:00:34 +0100 Subject: [PATCH 1/2] Fix issues with matplotlib --- mapgenerator/plotting/plotmap.py | 2 +- mapgenerator/plotting/timeseries.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mapgenerator/plotting/plotmap.py b/mapgenerator/plotting/plotmap.py index ed0224e..2a1694c 100644 --- a/mapgenerator/plotting/plotmap.py +++ b/mapgenerator/plotting/plotmap.py @@ -760,7 +760,7 @@ class PlotMap(MapCross, MapDrawOptions): frame_on=True) self.mgplot = plt.gcf() self.mgaxis.patch.set_edgecolor('black') - self.mgaxis.patch.set_linewidth('1') + self.mgaxis.patch.set_linewidth(1) self.gen_image_map( fig_name, grid, diff --git a/mapgenerator/plotting/timeseries.py b/mapgenerator/plotting/timeseries.py index 53c6e70..693d5e7 100644 --- a/mapgenerator/plotting/timeseries.py +++ b/mapgenerator/plotting/timeseries.py @@ -98,8 +98,8 @@ class PlotSeries(MapGenerator): ax.set_autoscaley_on(True) else: ax.set_ylim(left=ylimits[0], right=ylimits[1]) - ax.grid(b=True, which='major', axis='both', alpha=0.6) - ax.grid(b=True, which='minor', axis='both', alpha=0.3) + ax.grid(visible=True, which='major', axis='both', alpha=0.6) + ax.grid(visible=True, which='minor', axis='both', alpha=0.3) ax.tick_params( axis='both', which='major', labelsize=self.axis_fontsize) -- GitLab From 8774bf31d36c945b98ba4e138637a02acb32675e Mon Sep 17 00:00:00 2001 From: sloosvel Date: Mon, 20 Mar 2023 11:13:47 +0100 Subject: [PATCH 2/2] Increase version --- mapgenerator/__init__.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mapgenerator/__init__.py b/mapgenerator/__init__.py index 0e59cad..03a855f 100644 --- a/mapgenerator/__init__.py +++ b/mapgenerator/__init__.py @@ -1,4 +1,4 @@ """ Map Generator is a toolkit that provides easy to use 2D plotting and evaluation functions for Earth Sciences """ -__version__ = "1.0.6" +__version__ = "1.0.7" diff --git a/setup.py b/setup.py index ecd602c..c1697dd 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name="mapgenerator", license='Apache 2.0', # Version number (initial): - version="1.0.6", + version="1.0.7", # Application author details: author="Francesco Benincasa", -- GitLab