Skip to content

Commit

Permalink
docs: misc. updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kmnhan committed Dec 14, 2024
1 parent 8b3d30e commit 07d5adb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/source/user-guide/plotting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"- In the python ecosystem, there are some libraries that provide great colormaps, such as [cmasher](https://cmasher.readthedocs.io>), [cmocean](https://matplotlib.org/cmocean/>), and [colorcet](https://colorcet.holoviz.org>).\n",
"- In the python ecosystem, there are some libraries that provide great colormaps, such as [cmasher](https://github.com/1313e/CMasher>), [cmocean](https://github.com/matplotlib/cmocean>), [colorcet](https://github.com/holoviz/colorcet>), and [cmcrameri](https://github.com/callumrollo/cmcrameri).\n",
"\n",
"- Although matplotlib is a powerful library, it is heavy and slow, and better suited for static plots. For interactive plots, libraries such as [Plotly](https://github.com/plotly/plotly.py>) or [Bokeh](https://github.com/bokeh/bokeh>) are popular.\n",
"\n",
Expand Down
2 changes: 2 additions & 0 deletions src/erlab/interactive/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ def load_all(self) -> None:
importlib.import_module("cmocean")
if importlib.util.find_spec("colorcet"):
importlib.import_module("colorcet")
if importlib.util.find_spec("cmcrameri"):
importlib.import_module("cmcrameri")
if importlib.util.find_spec("seaborn"):
importlib.import_module("seaborn")

Expand Down
8 changes: 5 additions & 3 deletions src/erlab/plotting/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
In addition to the default `matplotlib
<https://matplotlib.org/stable/tutorials/colors/colormaps.html>`_ colormaps, `cmasher
<https://cmasher.readthedocs.io>`_, `cmocean <https://matplotlib.org/cmocean/>`_, and
`colorcet <https://colorcet.holoviz.org>`_ packages can be installed to extend the
available colormaps.
<https://github.com/1313e/CMasher>`_, `cmocean
<https://github.com/matplotlib/cmocean>`_, `colorcet
<https://github.com/holoviz/colorcet>`_, and `cmcrameri
<https://github.com/callumrollo/cmcrameri>`_ can be installed to extend the available
colormaps.
Colormap Normalization
----------------------
Expand Down

0 comments on commit 07d5adb

Please sign in to comment.