From edbf2a68942cbc1ef725ceffd4a356e8d0228258 Mon Sep 17 00:00:00 2001 From: RoyCoding8 <92641125+RoyCoding8@users.noreply.github.com> Date: Wed, 30 Mar 2022 01:58:18 +0530 Subject: [PATCH] Updated plot_singlediode.py (#1434) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update plot_singlediode.py Changed the unit from C to degree C (°C) * Update plot_singlediode.py Changed to LaTeX \degree symbol in matplotlib which avoids any encoding issues with using Unicode characters. * Update v0.9.1.rst Added name to the contributors' list * Update v0.9.1.rst --- docs/examples/iv-modeling/plot_singlediode.py | 2 +- docs/sphinx/source/whatsnew/v0.9.1.rst | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/examples/iv-modeling/plot_singlediode.py b/docs/examples/iv-modeling/plot_singlediode.py index c92d5e999e..e9085b3341 100644 --- a/docs/examples/iv-modeling/plot_singlediode.py +++ b/docs/examples/iv-modeling/plot_singlediode.py @@ -103,7 +103,7 @@ for i, case in conditions.iterrows(): label = ( "$G_{eff}$ " + f"{case['Geff']} $W/m^2$\n" - "$T_{cell}$ " + f"{case['Tcell']} $C$" + "$T_{cell}$ " + f"{case['Tcell']} $\\degree C$" ) plt.plot(curve_info['v'][i], curve_info['i'][i], label=label) v_mp = curve_info['v_mp'][i] diff --git a/docs/sphinx/source/whatsnew/v0.9.1.rst b/docs/sphinx/source/whatsnew/v0.9.1.rst index f7566e691a..8cdd5b4642 100644 --- a/docs/sphinx/source/whatsnew/v0.9.1.rst +++ b/docs/sphinx/source/whatsnew/v0.9.1.rst @@ -64,6 +64,7 @@ Documentation * Fix some typos (:pull:`1414`) * Clarify the descriptions of ``delta_t`` in several solar position functions (:pull:`1429`) +* Changed $C$ to $\\degree C$ in the plot_singlediode.py file (:pull:`1434`) Requirements ~~~~~~~~~~~~ @@ -85,3 +86,4 @@ Contributors * Jack Kelly (:ghuser:`JackKelly`) * Somasree Majumder(:ghuser:`soma2000-lang`) * Naman Priyadarshi (:ghuser:`Naman-Priyadarshi`) +* Shashwata Roy (:ghuser: `RoyCoding8`)