Skip to content

Commit

Permalink
add 2 more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jukent committed Jul 19, 2023
1 parent 9753c28 commit 560b946
Show file tree
Hide file tree
Showing 7 changed files with 296 additions and 2 deletions.
Binary file added docs/_static/thumbnails/plot_contour_labels.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/thumbnails/plot_extrema_labels.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ Here are some examples of how to use geocat-viz.
examples/add_right_hand_axis.ipynb
examples/add_major_minor_ticks.ipynb
examples/find_local_extrema.ipynb
examples/plot_contour_labels.ipynb
examples/plot_extrema_labels.ipynb
136 changes: 136 additions & 0 deletions docs/examples/plot_contour_labels.ipynb

Large diffs are not rendered by default.

144 changes: 144 additions & 0 deletions docs/examples/plot_extrema_labels.ipynb

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions docs/gallery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,11 @@
- title: 'find_local_extrema'
path: examples/find_local_extrema.ipynb
thumbnail: _static/thumbnails/find_local_extrema.png

- title: 'plot_contour_labels'
path: examples/plot_contour_labels.ipynb
thumbnail: _static/thumbnails/plot_contour_labels.png

- title: 'plot_extrema_labels'
path: examples/plot_extrema_labels.ipynb
thumbnail: _static/thumbnails/plot_extrema_labels.png
8 changes: 6 additions & 2 deletions src/geocat/viz/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,9 @@ def plot_contour_labels(ax: matplotlib.axes.Axes,
Examples
--------
All usage examples are within the GeoCAT-Examples Gallery. To see more usage cases, search the function on the `website <https://geocat-examples.readthedocs.io/en/latest/index.html>`_.
See this example notebook: :doc:`../../examples/plot_contour_labels`.
More in-depth plotting examples that utilize this function are in the GeoCAT-Examples Gallery. To see more usage cases, search the function on the `website <https://geocat-examples.readthedocs.io/en/latest/index.html>`_.
- `NCL_sat_1.py <https://geocat-examples.readthedocs.io/en/latest/gallery/MapProjections/NCL_sat_1.html?highlight=plotCLabels>`_
"""
Expand Down Expand Up @@ -1326,7 +1328,9 @@ def plot_extrema_labels(da: xr.DataArray,
Examples
--------
All usage examples are within the GeoCAT-Examples Gallery. To see more usage cases, search the function on the `website <https://geocat-examples.readthedocs.io/en/latest/index.html>`_.
See this example notebook: :doc:`../../examples/plot_extrema_labels`.
More in-depth plotting examples that utilize this function are in the GeoCAT-Examples Gallery. To see more usage cases, search the function on the `website <https://geocat-examples.readthedocs.io/en/latest/index.html>`_.
- `NCL_sat_1.py <https://geocat-examples.readthedocs.io/en/latest/gallery/MapProjections/NCL_sat_1.html?highlight=plotELabels>`_
Expand Down

0 comments on commit 560b946

Please sign in to comment.