Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Rename One Color Per Layer to Monochromatic #1406

Merged
merged 2 commits into from
Jun 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ API Changes
the history logger is still at "info" so you can see all messages
there instead. [#1368]

- In the Color Mode options under Plot Options, "Colormaps" and "One color per layer"
have been renamed to "Colormap" and "Monochromatic," respectively, for all image
viewers. [#1406]

Cubeviz
^^^^^^^

Expand Down
3 changes: 3 additions & 0 deletions jdaviz/core/template_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1456,6 +1456,9 @@ def _get_glue_value(self, state):
def _get_glue_choices(self, state):
if self._glue_name == 'cmap':
return [{'text': cmap[0], 'value': cmap[1].name} for cmap in colormaps.members]
elif self._glue_name == 'color_mode':
return [{'text': 'Colormap', 'value': 'Colormaps'},
{'text': 'Monochromatic', 'value': 'One color per layer'}]
else:
values, labels = _get_glue_choices(state, self._glue_name)
return [{'text': l, 'value': v} for v, l in zip(values, labels)]
Expand Down