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

« back to all changes in this revision

Viewing changes to chaco/contour_line_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:
28
28
    #------------------------------------------------------------------------
29
29
 
30
30
    # The thickness(es) of the contour lines.
 
31
    # It can be either a scalar value, valid for all contour lines, or a list
 
32
    # of widths. If the list is too short with respect to then number of
 
33
    # contour lines, the values are repeated from the beginning of the list.
 
34
    # Widths are associated with levels of increasing value.
31
35
    widths = Trait(1.0, Float, List)
32
36
 
33
37
    # The line dash style(s).
61
65
    # Cached list of line styles
62
66
    _styles = List
63
67
 
64
 
    # Mapped trait used to convert user-suppied line style values to
 
68
    # Mapped trait used to convert user-supplied line style values to
65
69
    # AGG-acceptable ones. (Mapped traits in lists are not supported, must be
66
70
    # converted one at a time.)
67
71
    _style_map_trait = LineStyle
108
112
 
109
113
    def _update_contours(self):
110
114
        """ Updates the cache of contour lines """
111
 
        # x and ydata are "fenceposts" so ignore the last value
112
 
        # XXX: this truncaton is causing errors in Cntr() as of r13735
 
115
        # x and y data are "fenceposts" so ignore the last value
 
116
        # XXX: this truncation is causing errors in Cntr() as of r13735
113
117
        xdata = self.index._xdata.get_data()
114
118
        ydata = self.index._ydata.get_data()
115
119
        xs = linspace(xdata[0], xdata[-1], len(xdata)-1)