Skip to content

Commit 2103b4e

Browse files
committed
use very long single line input for problematic plots
1 parent aa71922 commit 2103b4e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

docs/sphinx/source/clearsky.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ A clear sky time series using basic pvlib functions.
192192
dni_extra = pvlib.irradiance.extraradiation(apparent_zenith.index.dayofyear)
193193
194194
# an input is a pandas Series, so solis is a DataFrame
195-
ineichen = clearsky.ineichen(apparent_zenith, airmass, linke_turbidity,
196-
altitude, dni_extra)
195+
ineichen = clearsky.ineichen(apparent_zenith, airmass, linke_turbidity, altitude, dni_extra)
197196
ax = ineichen.plot();
198197
ax.set_ylabel('Irradiance $W/m^2$');
199198
ax.legend(loc=2);
@@ -348,10 +347,7 @@ Grid with a clear sky irradiance for a few PW and AOD values.
348347
fig, axes = plt.subplots(ncols=2, nrows=2, sharex=True, sharey=True, squeeze=True)
349348
axes = axes.flatten()
350349
351-
for (aod, pw), ax in zip(itertools.chain(itertools.product(aod700, precipitable_water)), axes):
352-
solis = clearsky.simplified_solis(apparent_elevation, aod, pw,
353-
pressure, dni_extra)
354-
solis.plot(ax=ax, title='aod700={}, pw={}'.format(aod, pw))
350+
[clearsky.simplified_solis(apparent_elevation, aod, pw, pressure, dni_extra).plot(ax=ax, title='aod700={}, pw={}'.format(aod, pw)) for (aod, pw), ax in zip(itertools.chain(itertools.product(aod700, precipitable_water)), axes)];
355351
356352
@savefig solis-grid.png width=10in
357353
plt.show();

0 commit comments

Comments
 (0)