10000 fix errors when building docs with mpl 3.0 (#585) · lboeman/pvlib-python@5281315 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5281315

Browse files
authored
fix errors when building docs with mpl 3.0 (pvlib#585)
1 parent db546de commit 5281315

File tree

2 files changed

+10
-24
lines changed

2 files changed

+10
-24
lines changed

docs/sphinx/source/clearsky.rst

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,9 @@ A clear sky time series using only basic pvlib functions.
289289

290290
In [1]: ax.set_title('Ineichen Clear Sky Model');
291291

292+
@savefig ineichen-vs-time-climo.png width=6in
292293
In [1]: ax.legend(loc=2);
293294

294-
@savefig ineichen-vs-time-climo.png width=6in
295-
In [1]: plt.show();
296295

297296
The input data types determine the returned output type. Array input
298297
results in an OrderedDict of array output, and Series input results in a
@@ -330,16 +329,13 @@ Grid with a clear sky irradiance for a few turbidity values.
330329
...: ineichen = clearsky.ineichen(apparent_zenith, airmass, linke_turbidity, altitude, dni_extra)
331330
...: ineichen.plot(ax=ax, title='Linke turbidity = {:0.1f}'.format(linke_turbidity));
332331

333-
In [1]: ax.legend(loc=1);
334-
335332
@savefig ineichen-grid.png width=10in
336-
In [1]: plt.show();
333+
In [1]: ax.legend(loc=1);
337334

338335
@suppress
339336
In [1]: plt.close();
340337

341338

342-
343339
Validation
344340
^^^^^^^^^^
345341

@@ -441,10 +437,8 @@ A clear sky time series using only basic pvlib functions.
441437

442438
In [1]: ax.set_title('Simplified Solis Clear Sky Model');
443439

444-
In [1]: ax.legend(loc=2);
445-
446440
@savefig solis-vs-time-0.1-1.png width=6in
447-
In [1]: plt.show();
441+
In [1]: ax.legend(loc=2);
448442

449443
@suppress
450444
In [1]: plt.close();
@@ -485,7 +479,7 @@ Irradiance as a function of solar elevation.
485479
In [1]: plt.close();
486480

487481

488-
Grid with a clear sky irradiance for a few PW and AOD values.
482+
Grid with clear sky irradiance for a few PW and AOD values.
489483

490484
.. ipython::
491485

@@ -507,13 +501,11 @@ Grid with a clear sky irradiance for a few PW and AOD values.
507501

508502
In [1]: axes = axes.flatten()
509503

504+
@savefig solis-grid.png width=10in
510505
In [1]: for (aod, pw), ax in zip(itertools.chain(itertools.product(aod700, precipitable_water)), axes):
511506
...: cs = clearsky.simplified_solis(apparent_elevation, aod, pw, pressure, dni_extra)
512507
...: cs.plot(ax=ax, title='aod700={}, pw={}'.format(aod, pw))
513508

514-
@savefig solis-grid.png width=10in
515-
In [1]: plt.show();
516-
517509
@suppress
518510
In [1]: plt.close();
519511

@@ -557,26 +549,20 @@ Contour plots of irradiance as a function of both PW and AOD.
557549

558550
.. ipython::
559551

560-
In [1]: plot_solis('ghi')
561-
562552
@savefig solis-ghi.png width=10in
563-
In [1]: plt.show()
553+
In [1]: plot_solis('ghi')
564554

565555
@suppress
566556
In [1]: plt.close();
567557

568-
In [1]: plot_solis('dni')
569-
570558
@savefig solis-dni.png width=10in
571-
In [1]: plt.show()
559+
In [1]: plot_solis('dni')
572560

573561
@suppress
574562
In [1]: plt.close();
575563

576-
In [1]: plot_solis('dhi')
577-
578564
@savefig solis-dhi.png width=10in
579-
In [1]: plt.show()
565+
In [1]: plot_solis('dhi')
580566

581567
@suppress
582568
In [1]: plt.close();
@@ -641,9 +627,8 @@ GHI data. We first generate and plot the clear sky and measured data.
641627
642628
ax.set_ylabel('Irradiance $W/m^2$');
643629
644-
plt.legend(loc=4);
645630
@savefig detect-clear-ghi.png width=10in
646-
plt.show();
631+
plt.legend(loc=4);
647632
648633
@suppress
649634
plt.close();

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Enhancements
2020

2121
Bug fixes
2222
~~~~~~~~~
23+
* Fix when building documentation using Matplotlib 3.0 or greater.
2324

2425

2526
Testing

0 commit comments

Comments
 (0)
0