Skip to content

Commit

Permalink
fix HTML plots running off page in tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnVolk committed Jul 21, 2024
1 parent bf97924 commit 2adb4c8
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
Binary file added docs/source/_static/CastleValleynearMoab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 19 additions & 7 deletions docs/source/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1336,14 +1336,22 @@ i.e., “[station]\_[month]\_[start_year]\_[end_year].html”.
Here is what the Castle Valley near Moab sites plot looks like for the
month of June (“CastleValleynearMoab_06_2015_2018.html”):

.. image:: _static/CastleValleynearMoab_06_2015_2018.png
:align: center

.. raw:: html
:file: _static/CastleValleynearMoab_06_2015_2018.html

<br />

.. note::
The daily and monthly scatter plots shown in the tutorial have been
converted to png images and have lost their interactive functions in
order to avoid the contents running off the page in web browsers.

.. note::
The daily and monthly comparison plots include scatter plots
of the paired variables supported, including the least squares linear
regression slope forced through the origin as a measure of bias between
the station and gridded data.
As seen above, the daily and monthly comparison plots include scatter plots
of the paired variables supported, including the least squares linear
regression slope forced through the origin as a measure of bias between
the station and gridded data.

In addition to the daily comparison plots, ``gridwxcomp`` offers a
similar plotting function which compared aggregated monthly data from
Expand Down Expand Up @@ -1371,9 +1379,13 @@ In this case the following files are generated:

And here is what the Castle Valley near Moab monthly plot file looks
like:

.. image:: _static/CastleValleynearMoab.png
:align: center

.. raw:: html
:file: _static/CastleValleynearMoab.html

<br />

In addition to the daily and monthly comparisons, the
:mod:`gridwxcomp.plot` submodule has a tool for comparing station bias
Expand Down
2 changes: 1 addition & 1 deletion gridwxcomp/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ def monthly_comparison(

# Plot all figures in list
fig = gridplot(figure_list, toolbar_location="left")

# Save the figure
save(fig)

Expand Down

0 comments on commit 2adb4c8

Please sign in to comment.