diff --git a/docs/examples/irradiance-transposition/plot_ghi_transposition.py b/docs/examples/irradiance-transposition/plot_ghi_transposition.py index 5eeb27ca36..9515fa2b82 100644 --- a/docs/examples/irradiance-transposition/plot_ghi_transposition.py +++ b/docs/examples/irradiance-transposition/plot_ghi_transposition.py @@ -18,11 +18,10 @@ from matplotlib import pyplot as plt # For this example, we will be using Golden, Colorado -tz = 'MST' lat, lon = 39.755, -105.221 # Create location object to store lat, lon, timezone -site = location.Location(lat, lon, tz=tz) +site = location.Location(lat, lon, tz='MST') # Calculate clear-sky GHI and transpose to plane of array @@ -52,7 +51,7 @@ def get_irradiance(site_location, date, tilt, surface_azimuth): 'POA': POA_irradiance['poa_global']}) -# Get irradiance data for summer and winter solstice, assuming 25 degree tilt +# Get irradiance data for summer and winter solstice, assuming 25 degrees tilt # and a south facing array summer_irradiance = get_irradiance(site, '06-20-2020', 25, 180) winter_irradiance = get_irradiance(site, '12-21-2020', 25, 180) @@ -67,8 +66,8 @@ def get_irradiance(site_location, date, tilt, surface_azimuth): summer_irradiance['POA'].plot(ax=ax1, label='POA') winter_irradiance['GHI'].plot(ax=ax2, label='GHI') winter_irradiance['POA'].plot(ax=ax2, label='POA') -ax1.set_xlabel('Time of day (Summer)') -ax2.set_xlabel('Time of day (Winter)') +ax1.set_xlabel('Time of day (in Summer)') +ax2.set_xlabel('Time of day (in Winter)') ax1.set_ylabel('Irradiance ($W/m^2$)') ax1.legend() ax2.legend() 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..c7e9fdad27 100644 --- a/docs/sphinx/source/whatsnew/v0.9.1.rst +++ b/docs/sphinx/source/whatsnew/v0.9.1.rst @@ -64,6 +64,8 @@ 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`) +* Changed axis labels and comments, and also deleted a string variable which wasn't required (:pull: `1450`) Requirements ~~~~~~~~~~~~ @@ -85,3 +87,4 @@ Contributors * Jack Kelly (:ghuser:`JackKelly`) * Somasree Majumder(:ghuser:`soma2000-lang`) * Naman Priyadarshi (:ghuser:`Naman-Priyadarshi`) +* Shashwata Roy (:ghuser: `RoyCoding8`)