/usr/lib/python2.7/dist-packages/ginga/qtw/tests/cbar.py is in python-ginga 2.6.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import sys
from ginga.qtw.QtHelp import QtGui, QtCore
from ginga.qtw import ColorBar
from ginga import cmap, imap
import logging
if __name__ == "__main__":
app = QtGui.QApplication([])
logger = logging.getLogger('cbar')
w = ColorBar.ColorBar(logger)
w.set_cmap(cmap.get_cmap('rainbow'))
w.set_imap(imap.get_imap('ramp'))
w.show()
app.exec_()
|