chaco.examples.demo.basic.image_from_file module¶
- Loads and saves RGB images from disk
 Left-drag pans the plot.
Mousewheel up and down zooms the plot in and out.
Pressing “z” brings up the Zoom Box, and you can click-drag a rectangular region to zoom. If you use a sequence of zoom boxes, pressing alt-left-arrow and alt-right-arrow moves you forwards and backwards through the “zoom history”.
- 
class 
chaco.examples.demo.basic.image_from_file.DemoController¶ Bases:
traitsui.handler.Handler- 
init(info)¶ Initializes the controls of a user interface. Overridden here to assign the ‘view’ trait.
- 
load(ui_info)¶ Callback for the ‘Load Image’ menu option.
- 
save(ui_info)¶ Callback for the ‘Save Image’ menu option.
- 
 
- 
class 
chaco.examples.demo.basic.image_from_file.DemoView¶ Bases:
traits.has_traits.HasTraits- 
alt_path= 'capitol.jpg'¶ 
- 
default_traits_view()¶ Returns the default view to use for this class.
- 
image_path= '/Users/cwebster/.edm/envs/chaco-test-3.6-pyside2/bin/capitol.jpg'¶ 
- 
resource_path= 'examples/basic/capitol.jpg'¶ 
- 
 
- 
chaco.examples.demo.basic.image_from_file.main(argv=None)¶