~ubuntu-branches/ubuntu/utopic/python-chaco/utopic

« back to all changes in this revision

Viewing changes to chaco/base_contour_plot.py

  • Committer: Package Import Robot
  • Author(s): Andrew Starr-Bochicchio
  • Date: 2014-06-01 17:04:08 UTC
  • mfrom: (7.2.5 sid)
  • Revision ID: package-import@ubuntu.com-20140601170408-m86xvdjd83a4qon0
Tags: 4.4.1-1ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
 - Let the binary-predeb target work on the usr/lib/python* directory
   as we don't have usr/share/pyshared anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
    # Data-related traits
21
21
    #------------------------------------------------------------------------
22
22
 
23
 
    # List of levels to contour.
 
23
    # Defines the levels to contour.
 
24
    # ``levels`` can be either: a list of floating point numbers that define
 
25
    # the value of the function at the contours; a positive integer, in which
 
26
    # case the range of the value is divided in the given number of equally
 
27
    # spaced levels; or "auto" (default), which divides the range in 10 levels
24
28
    levels = Trait("auto", Int, List)
25
29
 
26
30
    # The color(s) of the lines.
 
31
    # ``colors`` can be given as a color name, in which case all contours have
 
32
    # the same color, as a list of colors, or as a colormap. If the list of
 
33
    # colors is shorter than the number of levels, the values are repeated
 
34
    # from the beginning of the list. Default is black.
 
35
    # Colors are associated with levels of increasing value.
27
36
    colors = Trait(None, Str, Instance(ColorMapper), List, Tuple)
28
37
 
29
38
    # If present, the color mapper for the colorbar to look at.