ejeschke / ginga

The Ginga astronomical FITS file viewer
BSD 3-Clause "New" or "Revised" License
122 stars 77 forks source link

Fixed Pick plugin to autozoom the pick and contour images #919

Closed ejeschke closed 3 years ago

ejeschke commented 3 years ago

The Pick plugin is supposed to autozoom the pick and contour images in the plugin GUI, at least until the user overrides the zoom level. This change makes it work correctly.

ejeschke commented 3 years ago

not sure about the colorbar in the contour tab

Something not look right? Pick builds a ginga widget for Contours if you have scikit-image installed. This allows you to work more interactively with the contour image. It reverts to matplotlib (with limited interactivity) if scikit-image is not installed.

pllim commented 3 years ago

Something not look right?

The colorbar runs over the contour image. I think I am using the matplotlib visualization.

ejeschke commented 3 years ago

I think I am using the matplotlib visualization.

No, that is the default position for the colorbar canvas object in ginga. You can tell it is ginga widget because it has the usual mouse and keyboard bindings (try setting contrast with Ctrl+right).

We can plot it a little lower, or maybe put it in a separate widget like it is in the channel viewer, but that should be a different PR, I think.

ejeschke commented 3 years ago

If it is blocking the main contours, try using middle click or Shift+ left click to pan the image a little.

ejeschke commented 3 years ago

Also, if you make the widget larger, by pulling down the adjustable pane, then the colorbar falls to a lower position in the image. We could also make the default height of the panel taller.