From: John Stone (johns_at_ks.uiuc.edu)
Date: Thu Feb 02 2012 - 17:10:01 CST

Hi,
  Did you have any trouble with the preceding steps where other
things were plotted? Which VMD version are you using?

Cheers,
  John Stone
  vmd_at_ks.uiuc.edu

On Thu, Feb 02, 2012 at 04:24:18PM +0000, Ban Arn wrote:
> Dear VMD users
>
> I'm using tcl script from
> "http://www.ks.uiuc.edu/Training/Tutorials/science/10Ala-tutorial/tutorial-html/node6.html"
> for sMD analysis.
>
> The scripts were provided uploaded in the site and I'm using the same
> example data.
>
> While running the script "plot-force-extension.tcl" its shows error as
> "multiplot: Data vector empty, ignoring plot and cant read "f(-1)": no
> such element in array"
>
> This is the script i;m using for plotting grapg between force Vs distance.
>
> set lcolor {green orange black pink brown purple yellow cyan blue red}
> set plot2 [multiplot -plot]
> foreach l [array names z] cl $lcolor {
> set tmpz {}
> set tmpf {}
> set cnt [llength $z($l)]
> for {set tmpi 0} {$tmpi < $cnt} {incr tmpi 10} {
> lappend tmpz [lindex $z($l) $tmpi]
> lappend tmpf [lindex $f($l) $tmpi]
> }
> $plot2 add $tmpz $tmpf -linecolor $cl
> }
> $plot2 replot
>
> Kindly advice.
>
> Many Thanks
> Balaji

-- 
NIH Resource for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
http://www.ks.uiuc.edu/~johns/           Phone: 217-244-3349
http://www.ks.uiuc.edu/Research/vmd/       Fax: 217-244-6078