8000 fix errors when building docs with matplotlib 3.0 by wholmgren · Pull Request #585 · pvlib/pvlib-python · GitHub
[go: up one dir, main page]

Skip to content

fix errors when building docs with matplotlib 3.0 #585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix errors when building docs with mpl 3.0
  • Loading branch information
wholmgren committed Sep 20, 2018
commit b02d746b4eb4188345d53833098d8ab65605f3ce
33 changes: 9 additions & 24 deletions docs/sphinx/source/clearsky.rst
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,9 @@ A clear sky time series using only basic pvlib functions.

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

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

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

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

In [1]: ax.legend(loc=1);

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

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



Validation
^^^^^^^^^^

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

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

In [1]: ax.legend(loc=2);

@savefig solis-vs-time-0.1-1.png width=6in
In [1]: plt.show();
In [1]: ax.legend(loc=2);

@suppress
In [1]: plt.close();
Expand Down Expand Up @@ -485,7 +479,7 @@ Irradiance as a function of solar elevation.
In [1]: plt.close();


Grid with a clear sky irradiance for a few PW and AOD values.
Grid with clear sky irradiance for a few PW and AOD values.

.. ipython::

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

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

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

@savefig solis-grid.png width=10in
In [1]: plt.show();

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

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

.. ipython::

In [1]: plot_solis('ghi')

@savefig solis-ghi.png width=10in
In [1]: plt.show()
In [1]: plot_solis('ghi')

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

In [1]: plot_solis('dni')

@savefig solis-dni.png width=10in
In [1]: plt.show()
In [1]: plot_solis('dni')

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

In [1]: plot_solis('dhi')

@savefig solis-dhi.png width=10in
In [1]: plt.show()
In [1]: plot_solis('dhi')

@suppress
In [1]: plt.close();
Expand Down Expand Up @@ -641,9 +627,8 @@ GHI data. We first generate and plot the clear sky and measured data.

ax.set_ylabel('Irradiance $W/m^2$');

plt.legend(loc=4);
@savefig detect-clear-ghi.png width=10in
plt.show();
plt.legend(loc=4);

@suppress
plt.close();
Expand Down
1 change: 1 addition & 0 deletions docs/sphinx/source/whatsnew/v0.6.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Enhancements

Bug fixes
~~~~~~~~~
* Fix when building documentation using Matplotlib 3.0 or greater.


Testing
Expand Down
0