8000 Update plot_ghi_transposition.py · RoyCoding8/pvlib-python@b8eef98 · GitHub
[go: up one dir, main page]

Skip to content

Commit b8eef98

Browse files
committed
Update plot_ghi_transposition.py
Made some changes in labels and comments; deleted a variable which is not required
1 parent d885d59 commit b8eef98

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/examples/irradiance-transposition/plot_ghi_transposition.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@
1818
from matplotlib import pyplot as plt
1919

2020
# For this example, we will be using Golden, Colorado
21-
tz = 'MST'
2221
lat, lon = 39.755, -105.221
2322

2423
# Create location object to store lat, lon, timezone
25-
site = location.Location(lat, lon, tz=tz)
24+
site = location.Location(lat, lon, tz='MST')
2625

2726

2827
# Calculate clear-sky GHI and transpose to plane of array
@@ -52,7 +51,7 @@ def get_irradiance(site_location, date, tilt, surface_azimuth):
5251
'POA': POA_irradiance['poa_global']})
5352

5453

55-
# Get irradiance data for summer and winter solstice, assuming 25 degree tilt
54+
# Get irradiance data for summer and winter solstice, assuming 25 degrees tilt
5655
# and a south facing array
5756
summer_irradiance = get_irradiance(site, '06-20-2020', 25, 180)
5857
winter_irradiance = get_irradiance(site, '12-21-2020', 25, 180)
@@ -67,8 +66,8 @@ def get_irradiance(site_location, date, tilt, surface_azimuth):
6766
summer_irradiance['POA'].plot(ax=ax1, label='POA')
6867
winter_irradiance['GHI'].plot(ax=ax2, label='GHI')
6968
winter_irradiance['POA'].plot(ax=ax2, label='POA')
70-
ax1.set_xlabel('Time of day (Summer)')
71-
ax2.set_xlabel('Time of day (Winter)')
69+
ax1.set_xlabel('Time of day (in Summer)')
70+
ax2.set_xlabel('Time of day (in Winter)')
7271
ax1.set_ylabel('Irradiance ($W/m^2$)')
7372
ax1.legend()
7473
ax2.legend()

0 commit comments

Comments
 (0)
0