glue-viz / glue

Linked Data Visualizations Across Multiple Files
http://glueviz.org
Other
740 stars 153 forks source link

Selecting subsets in Glue #2398

Open smallstudent2021 opened 1 year ago

smallstudent2021 commented 1 year ago

Would it be possible to implement a feature in Glue that allows the selection of subsets based on user input of X and Y values?

jfoster17 commented 1 year ago

Do you mean adding this to the user interface (GUI)? Currently you can do this most easily from the built-in terminal. For instance, taking the example from the data tutorial you can do something like this to define very specific ranges:

>>> dc
DataCollection (2 data sets)
      0: w5[PRIMARY]
      1: w5_psc
>>> catalog = dc[1]
>>> hmag = catalog.id['Hmag']
>>> mid_mag = (hmag > 10) & (hmag < 15)
>>> dc.new_subset_group('between_10_15', mid_mag)

I think the general philosophy is that there are some selections that are best to make with the subset tools, and some (i.e. if you care about exact values) that are best to do in code at the terminal.

smallstudent2021 commented 1 year ago

Yes, that's what I mean. I see what you mean, it's better to implement it in terminal code. But to someone unfamiliar with python and code, this may seem unfriendly.

Thank you for your reply

---- Replied Message ---- | From | Jonathan @.> | | Date | 5/12/2023 23:04 | | To | @.> | | Cc | @.> , @.> | | Subject | Re: [glue-viz/glue] Selecting subsets in Glue (Issue #2398) |

Do you mean adding this to the user interface (GUI)? Currently you can do this most easily from the built-in terminal. For instance, taking the example from the data tutorial you can do something like this to define very specific ranges:

dc DataCollection (2 data sets) 0: w5[PRIMARY] 1: w5_psc catalog = dc[1] hmag = catalog.id['Hmag'] mid_mag = (hmag > 10) & (hmag < 15) dc.new_subset_group('between_10_15', mid_mag)

I think the general philosophy is that there are some selections that are best to make with the subset tools, and some (i.e. if you care about exact values) that are best to do in code at the terminal.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>