From: Piyush L. <pi...@da...> - 2002-12-16 12:42:55
|
Hi=20 Can any body help in the solving my problem ? When we create a Plplotwin object we specify the viewpoint and window = boundary using plvsta and plwind option. By doing this we restricts the = size of the plot to be plotted. If suppose our data at runtime (say input from some port) increase = beyond these boundaries. How we can plot this data ? Is there any way ?=20 To make it my problem more clear I am sending the piece of code.=20 package require Plplotter=20 Plplotwin .p=20 .p cmd plsvpa 0.0 100.0 0.0 100.0 .p cmd plwind 0.0 100.0 0.0 100.0 grid .p -columnspan 6 -sticky news grid rowconfigure . 0 -weight 1 grid columnconfigure . 5 -weight 1 button .bpl -text "Play" -command "play" grid .bpl -sticky "ew" matrix x f 2 matrix y f 2=20 matrix x1 f 2 matrix y1 f 2=20 proc play {} { .p cmd pllab "X-axis" "Y-axis" "MyGraph" global k=20 global xscroll=20 set xscroll 0 set k 1 while {$k < 50} { =20 .p cmd plcol 1=20 .p cmd plbox "abnhst" 20.0 0 "abnhstv" 20.0 0 x 0 =3D 0 y 0 =3D 30 #I have define the boundary on X-axis 100 here I am exceeding it the # = beyond the limit =20 for {set i 0} {$i < 300} {incr i} { .p cmd plcol 5 set a [expr 1 * $i] x 1 =3D $a y 1 =3D 30 .p cmd plline 2 x y x 0 =3D $a after 25 update =20 }=20 incr k =20 after 500 =20 .p cmd plspause 1 .p cmd plbop =20 } } Please go through this and suggest the needful . Looking forward for ur reply Regards Piyush L. |