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

Change default collapse function to sum #1229

Merged
merged 2 commits into from
Apr 5, 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
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ Specviz
Other Changes and Additions
---------------------------

- Change default collapse function to sum.
This affects collapsed spectrum in Cubeviz and its Collapse plugin default. [#1229]

2.4 (2022-03-29)
================

Expand Down
9 changes: 8 additions & 1 deletion jdaviz/configs/specviz/plugins/viewers.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,5 +476,12 @@ def set_plot_axes(self):
# Make it so y axis label is not covering tick numbers.
self.figure.axes[1].label_offset = "-50"

# # Set Y-axis to scientific notation
# Set Y-axis to scientific notation
self.figure.axes[1].tick_format = '0.1e'

# Change collapse function to sum and
# reset axes limits to match new spectrum view
self.state.function = 'sum'
# TODO: remove when glue-viz/glue PR #2277 is merged
# and the released version is pinned
self.state.reset_limits()