CARTAvis / carta-frontend

Source code repository for the frontend component of CARTA, a new visualization tool designed for the ALMA, the VLA and the SKA pathfinders.
https://cartavis.github.io/
GNU General Public License v3.0
20 stars 10 forks source link

Line plot enhancements #37

Closed veggiesaurus closed 5 years ago

veggiesaurus commented 6 years ago

There are a number of enhancements that the line plot component needs:

arusstaylor commented 6 years ago

I might add

Russ

On 28 Sep 2018, at 08:06, Angus Comrie notifications@github.com wrote:

There are a number of enhancements that the line plot component needs:

Zooming in Y and XY Panning in Y and XY Horizontal markers Optional callback for tick formatting Options for showing/hiding X and Y labels — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/idia-astro/carta-frontend/issues/37, or mute the thread https://github.com/notifications/unsubscribe-auth/AIotLXurLXluvVUFM3-lIXLzwCpagLAxks5ufbx5gaJpZM4W952S.

veggiesaurus commented 6 years ago

@arusstaylor I think data mean can be displayed as a simple horizontal line, right? How should RMS be displayed?

arusstaylor commented 6 years ago

You should check out cyberSKA profiles. The mean was represented by a line and the rms upper and lower bounds are represented by a light shaded region. Go to a profile in cyberSKA click on the little cog wheel in the profile window to turn on the option.

Russ

On 28 Sep 2018, at 09:44, Angus Comrie notifications@github.com wrote:

@arusstaylor https://github.com/arusstaylor I think data mean can be displayed as a simple horizontal line, right? How should RMS be displayed?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/idia-astro/carta-frontend/issues/37#issuecomment-425351323, or mute the thread https://github.com/notifications/unsubscribe-auth/AIotLVTA6i1QWIi3p9E3eNKcWyc9rXk1ks5ufdNagaJpZM4W952S.

veggiesaurus commented 6 years ago

@arusstaylor Yes, the CyberSKA profiles were the only example I could think of. I agree that RMS bounds should be a lightly shaded region.

arusstaylor commented 6 years ago

I think this is unique to the cyberSKA viewer. Russ

On 28 Sep 2018, at 11:31, Angus Comrie notifications@github.com wrote:

@arusstaylor https://github.com/arusstaylor Yes, the CyberSKA profiles were the only example I could think of. I agree that RMS bounds should be a lightly shaded region.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/idia-astro/carta-frontend/issues/37#issuecomment-425379256, or mute the thread https://github.com/notifications/unsubscribe-auth/AIotLYc1V1NcgGn1KMYy8b3gssh81_ZVks5ufexzgaJpZM4W952S.

veggiesaurus commented 6 years ago

@kswang1029 for reference, this is what Russ is referring to: image

kswang1029 commented 6 years ago

@kswang1029 for reference, this is what Russ is referring to: image

Right, marking the rms as a shaded region is a good idea and useful for analysis. I guess how the rms is derived is another question.

For the z-profiler, we will also need a label capability so that possible molecular transitions (from the online database) can be marked directly on the plot (one of the sci-req). The label could be a vertical bar with a text string rotated by 90 degrees.

veggiesaurus commented 6 years ago

@arusstaylor for mean and RMS calculations, is it the mean/RMS of the entire profile, or just the part of the profile that you're currently looking at? For example, if I zoom in on a particular section of the profile, should it re-calculate the mean and RMS for the section? (this is how CyberSKA approaches it)

arusstaylor commented 6 years ago

Just the part being viewed.

Russ

Sent from my iPad

On 11 Oct 2018, at 17:04, Angus Comrie notifications@github.com wrote:

@arusstaylor for mean and RMS calculations, is it the mean/RMS of the entire profile, or just the part of the profile that you're currently looking at? For example, if I zoom in on a particular section of the profile, should it re-calculate the mean and RMS for the section? (this is how CyberSKA approaches it)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

veggiesaurus commented 6 years ago

@arusstaylor @kswang1029 in general, this makes sense, along with the range of the spatial profile matching the image view's field of view. However, this is for cursor profiles, specifically. For profiles related to other point regions, I don't think they should adjust to match the field of view.

kswang1029 commented 6 years ago

is the mean/rms automatically determined by using the data in the current viewing range? or full range? Either one I cannot imagine good use cases. Maybe it is better to let the users select which data are used for the mean/rms calculations by making a box with cursor. Then the shaded region is plotted and users can use that as a reference to inspect which features are above 3-sigma threshold. If it is automatically determined by the viewing range, usually there are unwanted data for the mean/rms calculations.

veggiesaurus commented 6 years ago

Maybe it is better to let the users select which data are used for the mean/rms calculations by making a box with cursor.

I like this idea. I believe we will need to do something similar with curve fitting, because it will require us to "freeze" the data and export it to another widget for fitting. Needs careful consideration in terms of UI though

kswang1029 commented 6 years ago

Right, for gaussian fitting for example, users may draw some boxes first to provide initial gauss of fitting parameters (number of gaussians, amplitude, center, FWHM width, x-ranges, etc.).

Agreed, need careful design of UI for best UX

arusstaylor commented 5 years ago

Hi Angus.

Trying out the latest version of the viewer. A couple of comments on the profile window.

1) The actual mean and rms should be displayed as number somewhere when this option is turned on.
2) In the setup menu “draw as points” is set up as a on-off toggle. Not sure if this is a the best approach. I think we want at least three options for display: Histogram, points, joint to dots. These are mutually incomparable options, so should we rather have selection boxes for the options one wants?

Russ

On 12 Oct 2018, at 09:37, kswang1029 notifications@github.com wrote:

is the mean/rms automatically determined by using the data in the current viewing range? or full range? Either one I cannot imagine good use cases. Maybe it is better to let the users select which data are used for the mean/rms calculations by making a box with cursor. Then the shaded region is plotted and users can use that as a reference to inspect which features are above 3-sigma threshold. If it is automatically determined by the viewing range, usually there are unwanted data for the mean/rms calculations.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/idia-astro/carta-frontend/issues/37#issuecomment-429234149, or mute the thread https://github.com/notifications/unsubscribe-auth/AIotLXHG5t48sEJgwONxC1YhKtc2kHjgks5ukEbBgaJpZM4W952S.

veggiesaurus commented 5 years ago

The actual mean and rms should be displayed as number somewhere when this option is turned on.

Agreed. This will be integrated into a separate feature, because we also need to display the cursor value in a similar fashion. I'll create an issue for it.

In the setup menu “draw as points” is set up as a on-off toggle. Not sure if this is a the best approach. I think we want at least three options for display: Histogram, points, joint to dots

A dropdown box or a button group for this would work. I'll add an issue for this as well

arusstaylor commented 5 years ago

When you append a frame, it would be cool if the different frames appeared as tabs in the main image canvas, and click on the tab brought frame and associated profile. This provides an intuitive one-click way to change image frames

I have gotten into a state where the x-profile is not showing the data in the zoomed image region, The y-profile is correctly showing the zoomed image data but the x-profile is showing the full data set.

Russ

On 12 Oct 2018, at 09:37, kswang1029 notifications@github.com wrote:

is the mean/rms automatically determined by using the data in the current viewing range? or full range? Either one I cannot imagine good use cases. Maybe it is better to let the users select which data are used for the mean/rms calculations by making a box with cursor. Then the shaded region is plotted and users can use that as a reference to inspect which features are above 3-sigma threshold. If it is automatically determined by the viewing range, usually there are unwanted data for the mean/rms calculations.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/idia-astro/carta-frontend/issues/37#issuecomment-429234149, or mute the thread https://github.com/notifications/unsubscribe-auth/AIotLXHG5t48sEJgwONxC1YhKtc2kHjgks5ukEbBgaJpZM4W952S.

veggiesaurus commented 5 years ago

I have gotten into a state where the x-profile is not showing the data in the zoomed image region, The y-profile is correctly showing the zoomed image data but the x-profile is showing the full data set. Russ

Did you zoom in/out on the x-profile? The default behaviour is to auto-scale to match the image view unless you zoom in or out on the image. You can double-click to go back to the default range

arusstaylor commented 5 years ago

The z-profile plot should how a red vertical line at the position of the channel being viewed in the image canvas, in the same way the x and y profiles show the ordinate of the cursor in x and y.

x, y and z profiles should all have the same behaviour. When we get to the point of viewing rotated cubes z will be one of the image plane coordinates.

Russ

arusstaylor commented 5 years ago

Please ignore. I see that this is already in place. I was displaying channel 0 and could not see the red line.

Russ

On 20 Oct 2018, at 09:03, Russ Taylor russ@ast.uct.ac.za wrote:

The z-profile plot should how a red vertical line at the position of the channel being viewed in the image canvas, in the same way the x and y profiles show the ordinate of the cursor in x and y.

x, y and z profiles should all have the same behaviour. When we get to the point of viewing rotated cubes z will be one of the image plane coordinates.

Russ