TABLE OF CONTENTS


::pwtk::type::gp_size

SYNOPSIS

proc ::pwtk::type::gp_size {size} {

PURPOSE

Check if the Gnuplot 'size' is in the sx,sy syntax, where 'sx' and 'sy' are numbers. Incomplete sizes are not allowed, e.g., "sx," or ",sy".

RETURN VALUE

SOURCE

    set s [split $size ,]
    if { $s ne {} } {
        if { [llength $s] != 2 || ! [::pwtk::type::numberlist real -strict $s] } {
            return 0
        }
    }
    return 1
}