Skip to content

Commit

Permalink
Merge pull request #12 from NREL/removeFontError
Browse files Browse the repository at this point in the history
remove font error with new prettyplot
  • Loading branch information
malihass authored Nov 22, 2023
2 parents 0dcb82e + 11c5e53 commit cc2c4ba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pinn_spm_param/postProcess/plotPINNResult_movie.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
6 changes: 3 additions & 3 deletions pinn_spm_param/util/plotsUtil_batt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -463,5 +463,5 @@ def plotCollWeights(
globalTitle,
fontsize=14,
fontweight="bold",
fontname="Times New Roman",
fontname="serif",
)
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
tensorflow
prettyPlot>=0.0.5
prettyPlot>=0.0.7
pandas
corner
tf2jax
Expand Down

0 comments on commit cc2c4ba

Please sign in to comment.