From 6b05bcd27d206bca2a8ae14ed6121143d636e99a Mon Sep 17 00:00:00 2001 From: Malik Date: Wed, 22 Nov 2023 13:23:54 -0700 Subject: [PATCH 1/3] remove font error with new prettyplot --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 2d1ed81..721bee6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ tensorflow -prettyPlot>=0.0.5 +prettyPlot>=0.0.6 pandas corner tf2jax From 72358043ce26d0f85a540b008a54cdd6dcfe83ae Mon Sep 17 00:00:00 2001 From: Malik Date: Wed, 22 Nov 2023 13:30:18 -0700 Subject: [PATCH 2/3] remove times new roman --- pinn_spm_param/util/plotsUtil_batt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pinn_spm_param/util/plotsUtil_batt.py b/pinn_spm_param/util/plotsUtil_batt.py index 70c64b3..7d1904f 100644 --- a/pinn_spm_param/util/plotsUtil_batt.py +++ b/pinn_spm_param/util/plotsUtil_batt.py @@ -364,7 +364,7 @@ def plotCollWeights( ax = cbar.ax text = ax.yaxis.label font = matplotlib.font_manager.FontProperties( - family="times new roman", weight="bold", size=14 + family="serif", weight="bold", size=14 ) text.set_font_properties(font) if listXAxisName is None: @@ -421,7 +421,7 @@ def plotCollWeights( ax = cbar.ax text = ax.yaxis.label font = matplotlib.font_manager.FontProperties( - family="times new roman", weight="bold", size=14 + family="serif", weight="bold", size=14 ) text.set_font_properties(font) if listXAxisName is None: From 11c5e53e17c5275f2ddecfedb58370d6305ba503 Mon Sep 17 00:00:00 2001 From: Malik Date: Wed, 22 Nov 2023 13:40:55 -0700 Subject: [PATCH 3/3] remove font error --- pinn_spm_param/postProcess/plotPINNResult_movie.py | 2 +- pinn_spm_param/util/plotsUtil_batt.py | 2 +- requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pinn_spm_param/postProcess/plotPINNResult_movie.py b/pinn_spm_param/postProcess/plotPINNResult_movie.py index 7a2a9f2..b39e305 100644 --- a/pinn_spm_param/postProcess/plotPINNResult_movie.py +++ b/pinn_spm_param/postProcess/plotPINNResult_movie.py @@ -189,7 +189,7 @@ def makeCorrPlot(movieDir, dataDict, predDict, params_list, indMov, stepID): "Step " + str(stepID), fontsize=14, fontweight="bold", - fontname="Times New Roman", + fontname="serif", ) plt.savefig( os.path.join( diff --git a/pinn_spm_param/util/plotsUtil_batt.py b/pinn_spm_param/util/plotsUtil_batt.py index 7d1904f..26f7ba0 100644 --- a/pinn_spm_param/util/plotsUtil_batt.py +++ b/pinn_spm_param/util/plotsUtil_batt.py @@ -463,5 +463,5 @@ def plotCollWeights( globalTitle, fontsize=14, fontweight="bold", - fontname="Times New Roman", + fontname="serif", ) diff --git a/requirements.txt b/requirements.txt index 721bee6..7060842 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ tensorflow -prettyPlot>=0.0.6 +prettyPlot>=0.0.7 pandas corner tf2jax