File: sample_template.plt

package info (click to toggle)
python-chaco 4.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 15,144 kB
  • sloc: python: 35,936; ansic: 1,211; cpp: 241; makefile: 124; sh: 5
file content (22 lines) | stat: -rw-r--r-- 611 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 
# Sample Chaco template
# 
# Chaco templates are just python modules.  They generally consist of a series
# of top-level functions, each of which build out a plot component in the
# plot hierarchy.
#
# They must define a special symbol __plot_metadata__ which is an instance of
# TemplateMetadata.


from chaco.api import TemplateMetadata

__plot_metadata__ = TemplateMetadata(version = "1.0",
    pkg_name = "enthought.chaco",
    root_name = "top_frame",
    template_vars = { "left_slot": "VPlotContainer",
        "center_slot": "OverlayPlotContainer",
        "bottom_data": "ArrayDataSource" }
    )