Skip to content

Commit

Permalink
Updated plot_singlediode.py (pvlib#1434)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
RoyCoding8 committed Mar 29, 2022
1 parent cf4a8ad commit edbf2a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/examples/iv-modeling/plot_singlediode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 2 additions & 0 deletions docs/sphinx/source/whatsnew/v0.9.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
~~~~~~~~~~~~
Expand All @@ -85,3 +86,4 @@ Contributors
* Jack Kelly (:ghuser:`JackKelly`)
* Somasree Majumder(:ghuser:`soma2000-lang`)
* Naman Priyadarshi (:ghuser:`Naman-Priyadarshi`)
* Shashwata Roy (:ghuser: `RoyCoding8`)

0 comments on commit edbf2a6

Please sign in to comment.