Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
demoPlot.tcl
00001 # $Id$ #
00002 
00003 #
00004 #/** Demo of the plot command. \file demoPlot.tcl  \ingroup jmath */
00005 #
00006 
00007 package require jmath
00008 
00009 set n 100
00010 
00011 set data [jmath::new_mat  $n 3]
00012 
00013 for {set i 0} {$i < $n} {incr i} {
00014     set x [expr "$i/10.0"]
00015 
00016     $data set $i 0 $x
00017     $data set $i 1 [expr "pow($x,2)"]
00018     $data set $i 2 [expr "pow($x,3)"]
00019 
00020 }
00021 
00022 jmath::plot $data "using 1:2 with lines, '' using 1:3 with lines" "demo_plot"
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:21 for Jafar by doxygen 1.7.6.1
LAAS-CNRS