La documentation en ligne est là : http://tcllib.sourceforge.net/doc/plotchart.html
Normalement, ce paquet requiert Img mais une version modifiée pour utiliser pixane est disponible ici : http://wfr.tcl.tk/fichiers/pub/Plotchart.zip
Exemple d'utilisation (tiré de la documentation) :
package require Plotchart pack [canvas .c -background white -width 400 -height 200] -fill both set s [::Plotchart::createXYPlot .c {0.0 100.0 10.0} {0.0 100.0 20.0}] foreach {x y} {0.0 32.0 10.0 50.0 25.0 60.0 78.0 11.0 } { $s plot series1 $x $y } $s title "Data series"
.
package require Plotchart pack [canvas .c -bg white -width 400 -height 320] set pi 3.1415926 set p [::Plotchart::createXYPlot .c {0 12 2} {-1 1 0.25}] $p background gradient green top-down $p dataconfig voltage -filled up -fillcolour white -color green $p ytext "(V)" $p xconfig -ticklength 20 -format %.3f $p yconfig -ticklength 20 -minorticks 4 -labeloffset 10 for {set i 0} {$i < 100} {incr i} { set phase [expr {2.0*$pi*$i/50.0}] $p plot voltage $phase [expr {0.9*cos($phase)*sin(2*$phase)}] }