-
Notifications
You must be signed in to change notification settings - Fork 79
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
Implement histogram-style (steps, not real histogram) plots for specviz #385
Comments
The "histogram-style" plot mode is essential; please implement. It's the most realistic way to view any data that are binned into pixels. i agree with eteq that it should be the default; I used to get really tired of nagging students to use it with IRAF. R calls this plot style "step plot" or "stair step" plot, a much better term than "histogram," which properly refers to a completely different type of graph. I'm not yet a SpecViz user, and will not be a consistent user until this is implemented, but i would like to be. Thanks! |
Found this when I was seeing if anyone else had requested this. Yes this is the superior way to plot spectra, as they contain pixels. In matplotlib the command would be |
Solution from @astrofrog : Change profile viewer over at |
I disagree that this should be default. For high SNR spectra with thousands of wavelength bins, it adds clutter. |
It will be an exposed option in the layer options with glue-viz/glue-jupyter#309 (glue work already merged in glue-viz/glue#2292), but will default to using steps (as this is how the profile viewer already worked in matplotlib within glue). If we want to change the default in jdaviz to not using steps, we will need extra logic on our end whenever a new layer is added to override glue's default or we can suggest the change upstream. |
This was discussed in several places in #133 but I'm now realizing we never broke out an issue to specifically do this.
The goal here is to implement "histogram-style" plots instead of "line plots" - i.e., have the points on the spectrum be plotted as the center of a "box"-like plot instead of joining the segments directly as a line. For optical spectra this is typically more physical because they are closer to the concept of "flux in boxes" vs "samples from a continuous signal".
Not everyone agrees on what I just said there, so for this issue that should be an option. After this is implemented we can discuss whether it should be the default (which is what I advocated for in #133, but others were less convinced.)
🐱
The text was updated successfully, but these errors were encountered: