planetarypy / pdsview

Python PDS Image Viewer
BSD 3-Clause "New" or "Revised" License
13 stars 7 forks source link

Add "Histogram" tool in pdsview. #5

Closed bvnayak closed 7 years ago

bvnayak commented 9 years ago

Ginga has a very good widget for Histogram.py which can be used to add histogram support tool in our image viewer or we can make our own by taking its reference. I have modified some of the histogram tool utilities like line color, grid off, plot style etc. in the conda env 'ginga27' and 'ginga34' on my PC.

bvnayak commented 9 years ago

screen shot 2015-05-13 at 2 20 07 pm

percurnicus commented 7 years ago

I'm starting to address this issue. I like ginga's Histogram.py but not sure about embedding the entire plugin into the the main widget and then maintaining the cuts for the different channels. I'm going to try following this example: https://github.com/sir-wiggles/pyStocker/blob/master/utils.py#L174 and using these modules from matplotlib: http://matplotlib.org/api/backend_qt4agg_api.html, http://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.axvline.html, http://matplotlib.org/users/event_handling.html