hi
i am trying to get graph form wireless-mitf.tcl file. which i modified in 
finish proc as follow 
proc stop {} {
    global ns_ tracefd
    $ns_ flush-trace
    close $tracefd
    exec xgraph wireless_mitf - geometry 800X400 &
    exit 0
}



this gives me following error
localhost codes]$ Error: -: unknown option

Usage: xgraph [-device <ps|X|hpgl|idraw|tgif>]
        [-bd border_color] [-bg background_color] [-fg foreground_color]
        [-bar] [-brb bar_base] [-brw bar_width] [-bof bar_offset] [-stk]
        [-bw bdr_width] [-db]  [-gw grid_size] [-fitx] [-fity]
        [-gs grid_style] [-lf label_font] [-lnx] [-lny] [-lw line_width]
        [-lx x1,x2] [-ly y1,y2] [-m] [-M] [-nl] [-ng] [-nb] [-p] [-P]
        [-rv] [-t title] [-tf title_font] [-tk] [-scale factor]
        [-x x_unit_name] [-y y_unit_name] [-fmtx format] [-fmty format]
        [[-geometry |=]W=H+X+Y] [[-display] <host>:<disp>.<screen>]
        [-Pprinter|-o output_file|-O output_file] [[-<digit> set_name]
        [-zg zero_color] [-zw zero_size] [-a] [-dl <delay>] input_files...

-bar   Draw bar graph with base -brb, width -brw, and offset -bof
-stk   Draw bar graph stacking data sets.
-fitx  Scale all sets to fit the x-axis [0,1].
-fity  Scale all sets to fit the y-axis [0,1].
-fmtx  Printf format for the x-axis
-fmty  Printf format for the y-axis
-scale Scale the output file with factor
-O fn  Printer ready output file
-o fn  Encapsulated (document) output file
-bb    Draw bounding box around data
-db    Turn on debugging
-lnx   Logarithmic scale for X axis
-lny   Logarithmic scale for Y axis
-m -M  Mark points distinctively (M varies with color)
-nl    Don't draw lines (scatter plot)
-ng    Don't draw legend
-nb    Don't draw buttons
-p -P  Mark points with dot (P means big dot)
-rv    Reverse video on black and white displays
-tk    Draw tick marks instead of full grid
-a     Start in animation mode
-dl    Animation delay.  Default is 2




please help me in getting graph from trace file. please tell me how to specify 
xgraph command in finish proc to get graph from trace file.
thanks

harpreet singh

Reply via email to