Changeset 4357 for branches/1.3


Ignore:
Timestamp:
May 19, 2014 7:43:39 PM (6 years ago)
Author:
mmc
Message:

Backport of fix from trunk: Fix for the problem with curve objects in
the regression tester. The diff viewer complained about
xErrorValues/yErrorValues methods being missing from the canonical
curve object, so I added some dummy methods to suppress errors.
This isn't a full implementation of error values, but it works for now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3/lang/tcl/scripts/objects/curve/curve.rp

    r3177 r4357  
    168168            }
    169169
     170            if {[string length [$xmlobj get $path.$cname.xerrorbars]] > 0} {
     171                error "xerrorbars not fully implemented"
     172            }
     173            if {[string length [$xmlobj get $path.$cname.yerrorbars]] > 0} {
     174                error "yerrorbars not fully implemented"
     175            }
     176
    170177            set xlen [$xv length]
    171178            set ylen [$yv length]
     
    299306        }
    300307        error "bad option \"$cname\": should be [join [lsort [array names _yvecs]] {, }]"
     308    }
     309
     310    # ------------------------------------------------------------------
     311    # USAGE: xErrorValues <cname>
     312    #
     313    # Returns the x-axis error values for the specified curve
     314    # component <name>.
     315    # ------------------------------------------------------------------
     316    method xErrorValues {cname} {
     317        # Having this prevents errors, but this feature isn't really
     318        # implemented.  To be implemented, we must be able to import
     319        # and export error values in strings and xml objects.  We must
     320        # also be able to diff curves with error values, and also
     321        # visualize differences in error values.
     322    }
     323
     324    # ------------------------------------------------------------------
     325    # USAGE: yErrorValues <cname>
     326    #
     327    # Returns the y-axis error values for the specified curve
     328    # component <name>.
     329    # ------------------------------------------------------------------
     330    method yErrorValues {cname} {
     331        # Having this prevents errors, but this feature isn't really
     332        # implemented.  To be implemented, we must be able to import
     333        # and export error values in strings and xml objects.  We must
     334        # also be able to diff curves with error values, and also
     335        # visualize differences in error values.
    301336    }
    302337
Note: See TracChangeset for help on using the changeset viewer.