Skip to content
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

Get the "Interactive Plots" to work and show up #29

Merged
merged 23 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
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
15 changes: 15 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ authors:
orcid: https://orcid.org/0000-0002-2666-8493
website: https://github.com/anissa111
affiliation: UCAR/NCAR
- family-names: Eroglu
given-names: Orhan
orcid: https://orcid.org/0000-0003-3099-8775
website: https://github.com/erogluorhan
affiliation: UCAR/NCAR
- family-names: Chmielowiec
given-names: Philip
orcid:
website: https://github.com/philipc2
affiliation: UCAR/NCAR
- family-names: Clyne
given-names: John
orcid: https://orcid.org/0000-0003-2788-9017
website: https://github.com/clyne
affiliation: UCAR/NCAR
- name: "Advanced Visualization Cookbook contributors" # use the 'name' field to acknowledge organizations
website: "https://github.com/ProjectPythia/advanced-viz-cookbook/graphs/contributors"
title: "Advanced Visualization Cookbook"
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ This Project Pythia Cookbook covers advanced visualization techniques building u

## Motivation

The possibilities of data visualization in Python are almost endless. Already using `matplotlib` the workhorse behind many visualization packages, the user has a lot of customization options available to them. `cartopy`, `metpy`, `seaborn`, `geocat-viz`, and `datashader` are all also great packages that can offer unique additions to your Python visualization toolbox.
The possibilities of data visualization in Python are almost endless. Already using `matplotlib` the workhorse behind many visualization packages, the user has a lot of customization options available to them. `cartopy`, `metpy`, `seaborn`, `geocat-viz`, and `datashader` are all also great packages that can offer unique additions to your Python visualization toolbox.

This Cookbook will house various visualization workflow examples that use different visualization packages, highlight the differences in functionality between the packages, any noteable syntax distinctions, and demonstrate combining tools to achieve a specific outcome.
This Cookbook will house various visualization workflow examples that use different visualization packages, highlight the differences in functionality between the packages, any noteable syntax distinctions, and demonstrate combining tools to achieve a specific outcome.

## Authors

[Julia Kent](@jukent), [Anissa Zacharias](@anissa111)
[Julia Kent](@jukent), [Anissa Zacharias](@anissa111), [Orhan Eroglu](@erogluorhan), [Philip Chmielowiec](@philipc2), [John Clyne](@clyne)

### Contributors

Expand Down Expand Up @@ -43,6 +43,10 @@ In this section we will demonstrate how to visualize data that is on a structure

Animated plots are great tools for science communication and outreach. We will demonstrate how to make your plots come to life. In this book, we use "animated plots" to refer to stable animations, such as the creation of gifs or videos.

### Interactivity

Dynamically rendering, animating, panning & zooming over a plot can be great to increase data fidelity. We will showcase how to use Holoviz technologies with Bokeh backend to create interactive plots, utilizing an unstructured grid data in the Model for Prediction Across Scales (MPAS) format.

## Running the Notebooks

You can either run the notebook using [Binder](https://binder.projectpythia.org/) or on your local machine.
Expand Down
12 changes: 6 additions & 6 deletions _toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ parts:
- file: notebooks/how-to-cite
- caption: Basics of Geoscience Visualization
chapters:
- file: notebooks/comparison
- file: notebooks/good-viz
- file: notebooks/plot-elements
- file: notebooks/comparison
- file: notebooks/good-viz
- file: notebooks/plot-elements
- caption: Specialty Plots
chapters:
- file: notebooks/taylor-diagrams
- file: notebooks/skewt
- caption: Visualization of Structured Grids
chapters:
- file: notebooks/spaghetti
- caption: Interactive Visualization
chapters:
- file: notebooks/mpas-datshader
- caption: Animation
chapters:
- file: notebooks/animation
- caption: Interactivity
chapters:
- file: notebooks/interactive-holoviz-mpas
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dependencies:
- uxarray
- datashader
- geocat-datafiles
- geoviews
- tropycal
- pip
- pip:
Expand Down
6 changes: 4 additions & 2 deletions notebooks/animation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,9 @@
"\n",
"Creating animations in `matplotlib` might seem intimidating, but is easier when you know the options and purpose of each method. These visualizations can be a powerful tool to display and understand time-dependent data.\n",
"\n",
"### What's next?\n"
"### What's next?\n",
"\n",
"In the final section of this cookbook, let’s look at [interactive plotting with Holoviz](interactive-holoviz-mpas) tools."
]
},
{
Expand Down Expand Up @@ -504,7 +506,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
Binary file added notebooks/images/hv-dynamic-zoomed.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 notebooks/images/hv-non-dynamic-zoomed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading