Skip to content

Commit

Permalink
add turbo colormap (#348)
Browse files Browse the repository at this point in the history
* update matplotlib colormaps

* update actions in client build pipeline
  • Loading branch information
jkittner authored Nov 4, 2024
1 parent 1a5ab90 commit 0e776b7
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 12

Expand All @@ -32,6 +32,6 @@ jobs:
popd
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4.9.0
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "[skip ci] Commit latest build"
25 changes: 25 additions & 0 deletions terracotta/client/app/src/colormap/colormaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ export interface Colormap {
}

const COLORMAPS: Colormap[] = [
{
displayName: 'Grays',
id: 'grays',
img_url: 'https://terracotta-python.readthedocs.io/en/latest/_images/cmap-grays-bar.png'
},
{
displayName: 'Grey',
id: 'grey',
img_url: 'https://terracotta-python.readthedocs.io/en/latest/_images/cmap-grey-bar.png'
},
{
displayName: 'Greys',
id: 'greys',
Expand Down Expand Up @@ -395,11 +405,21 @@ const COLORMAPS: Colormap[] = [
id: 'gist_gray',
img_url: 'https://terracotta-python.readthedocs.io/en/latest/_images/cmap-gist_gray-bar.png'
},
{
displayName: 'Gist_grey',
id: 'gist_grey',
img_url: 'https://terracotta-python.readthedocs.io/en/latest/_images/cmap-gist_grey-bar.png'
},
{
displayName: 'Gist_yarg',
id: 'gist_yarg',
img_url: 'https://terracotta-python.readthedocs.io/en/latest/_images/cmap-gist_yarg-bar.png'
},
{
displayName: 'Gist_yerg',
id: 'gist_yerg',
img_url: 'https://terracotta-python.readthedocs.io/en/latest/_images/cmap-gist_yerg-bar.png'
},
{
displayName: 'Hsv',
id: 'hsv',
Expand All @@ -410,6 +430,11 @@ const COLORMAPS: Colormap[] = [
id: 'jet',
img_url: 'https://terracotta-python.readthedocs.io/en/latest/_images/cmap-jet-bar.png'
},
{
displayName: 'Turbo',
id: 'turbo',
img_url: 'https://terracotta-python.readthedocs.io/en/latest/_images/cmap-turbo-bar.png'
},
{
displayName: 'Nipy_spectral',
id: 'nipy_spectral',
Expand Down
Binary file modified terracotta/cmaps/data/brbg_r_rgba.npy
Binary file not shown.
Binary file added terracotta/cmaps/data/gist_grey_rgba.npy
Binary file not shown.
Binary file added terracotta/cmaps/data/gist_yerg_rgba.npy
Binary file not shown.
Binary file added terracotta/cmaps/data/grays_rgba.npy
Binary file not shown.
Binary file added terracotta/cmaps/data/grey_rgba.npy
Binary file not shown.
Binary file modified terracotta/cmaps/data/piyg_r_rgba.npy
Binary file not shown.
Binary file modified terracotta/cmaps/data/prgn_r_rgba.npy
Binary file not shown.
Binary file modified terracotta/cmaps/data/rdbu_r_rgba.npy
Binary file not shown.
Binary file modified terracotta/cmaps/data/rdgy_r_rgba.npy
Binary file not shown.
Binary file modified terracotta/cmaps/data/rdylbu_r_rgba.npy
Binary file not shown.
Binary file modified terracotta/cmaps/data/rdylgn_r_rgba.npy
Binary file not shown.
Binary file modified terracotta/cmaps/data/spectral_r_rgba.npy
Binary file not shown.
Binary file added terracotta/cmaps/data/turbo_r_rgba.npy
Binary file not shown.
Binary file added terracotta/cmaps/data/turbo_rgba.npy
Binary file not shown.

0 comments on commit 0e776b7

Please sign in to comment.