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
- 1 if size is of correct type
- 0 otherwise
SOURCE
set s [split $size ,] if { $s ne {} } { if { [llength $s] != 2 || ! [::pwtk::type::numberlist real -strict $s] } { return 0 } } return 1 }