Skip to content

Commit edbf2a6

Browse files
authored
Updated plot_singlediode.py (#1434)
* 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
1 parent cf4a8ad commit edbf2a6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/examples/iv-modeling/plot_singlediode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
for i, case in conditions.iterrows():
104104
label = (
105105
"$G_{eff}$ " + f"{case['Geff']} $W/m^2$\n"
106-
"$T_{cell}$ " + f"{case['Tcell']} $C$"
106+
"$T_{cell}$ " + f"{case['Tcell']} $\\degree C$"
107107
)
108108
plt.plot(curve_info['v'][i], curve_info['i'][i], label=label)
109109
v_mp = curve_info['v_mp'][i]

docs/sphinx/source/whatsnew/v0.9.1.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ Documentation
6464
* Fix some typos (:pull:`1414`)
6565
* Clarify the descriptions of ``delta_t`` in several solar position functions
6666
(:pull:`1429`)
67+
* Changed $C$ to $\\degree C$ in the plot_singlediode.py file (:pull:`1434`)
6768

6869
Requirements
6970
~~~~~~~~~~~~
@@ -85,3 +86,4 @@ Contributors
8586
* Jack Kelly (:ghuser:`JackKelly`)
8687
* Somasree Majumder(:ghuser:`soma2000-lang`)
8788
* Naman Priyadarshi (:ghuser:`Naman-Priyadarshi`)
89+
* Shashwata Roy (:ghuser: `RoyCoding8`)

0 commit comments

Comments
 (0)