added setColorMap method to ImageView

This commit is contained in:
Megan Kratz 2016-02-15 16:58:13 -05:00
parent f988f0522d
commit 3a50f65120

View File

@ -717,4 +717,8 @@ class ImageView(QtGui.QWidget):
if self.menu is None:
self.buildMenu()
self.menu.popup(QtGui.QCursor.pos())
def setColorMap(self, colormap):
"""Set the color map. *colormap* is an instance of ColorMap()"""
self.ui.histogram.gradient.setColorMap(colormap)