Skip to content

Commit

Permalink
Merge pull request #1229 from javerbukh/change_function
Browse files Browse the repository at this point in the history
Change default collapse function to sum
  • Loading branch information
pllim authored Apr 5, 2022
2 parents 1d8ef1a + 4b1b8db commit 97219e6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
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()

0 comments on commit 97219e6

Please # to comment.