-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 12 support non latlon grib grids (#16) * Adds support for non-lat-lon GRIB data points * Re-enable automatic legend titles with proper fallback if no metadata found * QA tweaks * Rollback version of micromamba used with unit tests to v12 * Testing latest micromamba * Migrate to new setup-micromamba * Improve levels auto_range with proper symmetry (#17) * Improve levels auto_range with proper symmetry * Ensure symmetry around arbitrary divergence point * Removes obsolete math import --------- Co-authored-by: James Varndell <[email protected]> * Fix datetime metadata for xarray for single-time datasets (#18) * Only check for unstructured grid if normal plotting fails * Adds convience save function at subplot level * Fix earthkit mutably messing up an xarray's longitude (#22) * Fix dimensionless unit formatting (#19) * Fix dimensionless unit formatting * Update src/earthkit/plots/metadata/units.py Co-authored-by: James Varndell <[email protected]> --------- Co-authored-by: James Varndell <[email protected]> * Adds plugin support for Python 3.9 (#23) * Feature/interactive plots (#25) * Moves interactive plots into earthkit.plots.interactive * Adds plotly to requirements * Moves interactive plots into earthkit.plots.interactive * Remove empty notebook * QA tweaks * Adds default style to improve look and feel with >5 quantiles * Adds default style to improve look and feel with >5 quantiles * Adds docstrings * Adds tests for interactive plots * QA tweaks * Feature/vertical plots (#26) * Moves interactive plots into earthkit.plots.interactive * Adds plotly to requirements * Moves interactive plots into earthkit.plots.interactive * Remove empty notebook * QA tweaks * Adds default style to improve look and feel with >5 quantiles * Adds default style to improve look and feel with >5 quantiles * Adds docstrings * Adds tests for interactive plots * QA tweaks * Adds better support for interactive vertical plots --------- Co-authored-by: Juniper Tyree <[email protected]>
- Loading branch information
1 parent
5a684b7
commit 7de602f
Showing
22 changed files
with
1,149 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ dependencies: | |
- pint | ||
- pyyaml | ||
- numpy | ||
- plotly | ||
- pip: | ||
- adjustText | ||
- earthkit-plots-default-styles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ dependencies = [ | |
"cartopy>=0.22.0", | ||
"pint", | ||
"matplotlib", | ||
"plotly", | ||
"pyyaml", | ||
"numpy", | ||
"adjustText" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright 2024, European Centre for Medium Range Weather Forecasts. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
from earthkit.plots.interactive.charts import Chart | ||
|
||
__all__ = [ | ||
"Chart", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright 2024, European Centre for Medium Range Weather Forecasts. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import plotly.graph_objects as go | ||
|
||
from earthkit.plots.interactive import inputs | ||
|
||
|
||
@inputs.sanitise() | ||
def bar(*args, **kwargs): | ||
trace = go.Bar(*args, **kwargs) | ||
return trace |
Oops, something went wrong.