TABLE OF CONTENTS
::pwtk::gp::displayPlots_
SYNOPSIS
proc ::pwtk::gp::displayPlots_ {visualize term images} {
PURPOSE
Display Gnuplot generated image(s) if $visualize && $term in $gp(file.terminals)
ARGUMENTS
- visualize -- boolean flag for visualize or not
- term -- gnuplot terminal
- images -- list of images to visualize
SOURCE
set term [gp2pwtk [term_usable $term]] if { $visualize && [::pwtk::getViewer $term] ne {} } { foreach img $images { try { print "Visualizing $img ..." ::pwtk::display $img } on error err { ::pwtk::error "cannot visulize the $img plot\n\n$err" } } ::pwtk::ifnotempty images { puts "" } } }