Module Expr Str ImportFrom alias Import alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num For NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Str Str SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad If CompareIn NameLoad TupleLoad Str Str Str Str Str Str Str Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Str If Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num orelse Assign NameStore Call NameLoad NameLoad If CompareNotEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad Num Call NameLoad BinOpAdd NameLoad Num handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign TupleStore NameStore NameStore TupleLoad BinOpAdd NameLoad Num BinOpAdd NameLoad Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str keyword Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call NameLoad NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If CompareGt Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body ImportFrom alias Assign NameStore Str Assign NameStore Call NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword NameLoad keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num If AttributeLoad NameLoad attr body Import alias Expr Call AttributeLoad NameLoad attr Str orelse If AttributeLoad NameLoad attr body Import alias Expr Call NameLoad BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Str orelse Expr Call NameLoad NameLoad NameLoad
N/A N/A 
Usage:
   example2_mpl.py [fits file]

You need Qt4 with python bindings (or pyside) installed to run this example.
 __future__ print_function N/A sys os ginga.qtw.QtHelp QtGui QtCore ginga AstroImage matplotlib.figure Figure ginga.mplw.ImageViewCanvasMpl ImageViewCanvas ginga.mplw.FigureCanvasQt FigureCanvas ginga.misc log ginga colors FitsViewer N/A N/A QtGui QMainWindow N/A __init__ N/A N/A self logger N/A N/A N/A N/A N/A N/A super FitsViewer self __init__ N/A N/A self logger logger N/A N/A self drawcolors N/A N/A colors get_colors N/A fig N/A Figure N/A w N/A FigureCanvas fig N/A fi N/A ImageViewCanvas logger N/A N/A N/A fi enable_autocuts on N/A N/A N/A fi set_autocut_params zscale N/A N/A N/A fi enable_autozoom on N/A N/A N/A fi enable_draw False N/A N/A N/A fi set_callback drag-drop N/A self drop_file N/A N/A N/A fi set_callback none-move N/A self motion N/A N/A N/A fi set_bg 0.2 0.2 0.2 N/A N/A N/A fi ui_setActive True N/A N/A self fitsimage fi N/A N/A N/A fi set_figure fig N/A bd N/A N/A fi get_bindings N/A N/A N/A bd enable_all True N/A DrawingCanvas N/A N/A fi getDrawClass drawingcanvas N/A canvas N/A DrawingCanvas N/A N/A N/A canvas enable_draw True N/A N/A N/A canvas set_drawtype rectangle color lightblue N/A N/A N/A canvas setSurface fi N/A N/A self canvas canvas N/A N/A N/A fi add canvas N/A N/A N/A canvas ui_setActive True N/A N/A N/A w resize 512 512 N/A vbox N/A N/A QtGui QVBoxLayout N/A N/A N/A vbox setContentsMargins N/A N/A QtCore QMargins 2 2 2 2 N/A N/A N/A vbox setSpacing 1 N/A N/A N/A vbox addWidget w stretch 1 N/A N/A self readout N/A N/A QtGui QLabel N/A N/A N/A vbox addWidget N/A self readout stretch 0 alignment N/A N/A QtCore Qt AlignCenter N/A hbox N/A N/A QtGui QHBoxLayout N/A N/A N/A hbox setContentsMargins N/A N/A QtCore QMargins 4 2 4 2 N/A wdrawtype N/A N/A QtGui QComboBox N/A N/A self drawtypes N/A N/A fi get_drawtypes N/A name N/A self drawtypes N/A N/A N/A N/A wdrawtype addItem name N/A index N/A N/A N/A self drawtypes index rectangle N/A N/A N/A wdrawtype setCurrentIndex index N/A N/A N/A N/A wdrawtype activated connect N/A self set_drawparams N/A N/A self wdrawtype wdrawtype N/A wdrawcolor N/A N/A QtGui QComboBox N/A name N/A self drawcolors N/A N/A N/A N/A wdrawcolor addItem name N/A index N/A N/A N/A self drawcolors index lightblue N/A N/A N/A wdrawcolor setCurrentIndex index N/A N/A N/A N/A wdrawcolor activated connect N/A self set_drawparams N/A N/A self wdrawcolor wdrawcolor N/A wfill N/A N/A QtGui QCheckBox Fill N/A N/A N/A N/A wfill stateChanged connect N/A self set_drawparams N/A N/A self wfill wfill N/A walpha N/A N/A QtGui QDoubleSpinBox N/A N/A N/A walpha setRange 0.0 1.0 N/A N/A N/A walpha setSingleStep 0.1 N/A N/A N/A walpha setValue 1.0 N/A N/A N/A N/A walpha valueChanged connect N/A self set_drawparams N/A N/A self walpha walpha N/A wclear N/A N/A QtGui QPushButton Clear Canvas N/A N/A N/A N/A wclear clicked connect N/A self clear_canvas N/A wopen N/A N/A QtGui QPushButton Open File N/A N/A N/A N/A wopen clicked connect N/A self open_file N/A wquit N/A N/A QtGui QPushButton Quit N/A N/A N/A N/A wquit clicked connect N/A self close N/A N/A N/A hbox addStretch 1 N/A w N/A wopen wdrawtype wdrawcolor wfill N/A N/A QtGui QLabel Alpha: walpha wclear wquit N/A N/A N/A N/A hbox addWidget w stretch 0 N/A hw N/A N/A QtGui QWidget N/A N/A N/A hw setLayout hbox N/A N/A N/A vbox addWidget hw stretch 0 N/A vw N/A N/A QtGui QWidget N/A N/A N/A self setCentralWidget vw N/A N/A N/A vw setLayout vbox N/A set_drawparams N/A N/A self kind N/A N/A N/A index N/A N/A N/A self wdrawtype currentIndex N/A kind N/A N/A self drawtypes N/A index N/A index N/A N/A N/A self wdrawcolor currentIndex N/A fill N/A N/A N/A N/A self wfill checkState 0 N/A alpha N/A N/A N/A self walpha value N/A params N/A color alpha N/A N/A self drawcolors N/A index alpha N/A N/A kind N/A circle rectangle polygon triangle righttriangle ellipse square box N/A N/A N/A params N/A fill fill N/A N/A params N/A fillalpha alpha N/A N/A N/A N/A self canvas set_drawtype kind params N/A clear_canvas N/A N/A self N/A N/A N/A N/A N/A N/A self canvas deleteAllObjects N/A load_file N/A N/A self filepath N/A N/A N/A image N/A N/A AstroImage AstroImage logger N/A self logger N/A N/A N/A image load_file filepath N/A N/A N/A N/A self fitsimage set_image image N/A N/A N/A self setWindowTitle filepath N/A open_file N/A N/A self N/A N/A N/A res N/A N/A N/A QtGui QFileDialog getOpenFileName self Open FITS file . FITS files (*.fits) N/A N/A isinstance res tuple N/A N/A fileName N/A res N/A 0 N/A N/A fileName N/A str res N/A N/A N/A len fileName 0 N/A N/A N/A N/A self load_file fileName N/A drop_file N/A N/A self fitsimage paths N/A N/A N/A fileName N/A paths N/A 0 N/A N/A N/A self load_file fileName N/A motion N/A N/A self fitsimage button data_x data_y N/A N/A N/A N/A N/A value N/A N/A fitsimage get_data N/A int N/A data_x 0.5 N/A int N/A data_y 0.5 N/A N/A N/A Exception N/A N/A value None N/A N/A fits_x fits_y N/A N/A data_x 1 N/A data_y 1 N/A N/A N/A image N/A N/A fitsimage get_image N/A N/A image None N/A N/A N/A N/A ra_txt dec_txt N/A N/A image pixtoradec fits_x fits_y format str coords fits N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A self logger warning N/A Bad coordinate conversion: %s N/A str e N/A ra_txt BAD WCS N/A dec_txt BAD WCS N/A text N/A RA: %s  DEC: %s  X: %.2f  Y: %.2f  Value: %s N/A ra_txt dec_txt fits_x fits_y value N/A N/A N/A N/A self readout setText text N/A N/A main N/A N/A options args N/A N/A N/A N/A N/A N/A QtGui QApplication setGraphicsSystem raster N/A app N/A N/A QtGui QApplication args N/A N/A N/A app connect app N/A N/A QtCore SIGNAL lastWindowClosed() app N/A N/A QtCore SLOT quit() N/A logger N/A N/A log get_logger name example2 options options N/A w N/A FitsViewer logger N/A N/A N/A w resize 524 540 N/A N/A N/A w show N/A N/A N/A app setActiveWindow w N/A N/A N/A w raise_ N/A N/A N/A w activateWindow N/A N/A N/A len args 0 N/A N/A N/A N/A w load_file N/A args N/A 0 N/A N/A N/A app exec_ N/A N/A N/A __name__ __main__ N/A optparse OptionParser N/A usage usage: %prog [options] cmd [args] N/A optprs N/A OptionParser usage usage version %%prog N/A N/A N/A optprs add_option --debug dest debug default False action store_true help Enter the pdb debugger on main() N/A N/A N/A optprs add_option --log dest logfile metavar FILE help Write logging output to FILE N/A N/A N/A optprs add_option --loglevel dest loglevel metavar LEVEL type int default None help Set logging level to LEVEL N/A N/A N/A optprs add_option --stderr dest logstderr default False action store_true help Copy logging also to stderr N/A N/A N/A optprs add_option --profile dest profile action store_true default False help Run the profiler on main() N/A N/A options args N/A N/A optprs parse_args N/A N/A sys argv N/A 1 N/A N/A options debug N/A N/A pdb N/A N/A N/A pdb run main(options, args) N/A N/A N/A options profile N/A N/A profile N/A N/A print N/A %s profile: N/A N/A sys argv N/A 0 N/A N/A N/A profile run main(options, args) N/A N/A N/A main options args