help in xgraph

255 views
Skip to first unread message

Rajesh Jangid

unread,
Dec 17, 2013, 8:59:09 AM12/17/13
to ns-3-...@googlegroups.com
Dear Users
                     i am new in ns-3. please give step of using Xgraph .i want to generate graph using xgraph. give me some examples.

--
Thanks & Regards
Rajesh Jangid

Tommaso Pecorella

unread,
Dec 17, 2013, 4:31:39 PM12/17/13
to ns-3-...@googlegroups.com
Dear RJ,

I am new to Xgraph. Can not give examples because I use gnuplot.

Seriously... ns-3 is a network simulator, Xgraph is a plotting tool. In between there's a whole world. You didn't say what simulation you're trying to do, what numbers you're planning to find, and so on.

Examples ? None. You first have to decide what you want to plot. Then check the ns-3 manual (there's a manual !), and in particular this link: http://www.nsnam.org/docs/manual/html/data-collection-helpers.html
Gnuplot data can be used for Xgraph as well (if I'm right), so...

But first... decide what you want to plot ! It's not like the numbers will come out of the simulation by magic, you need to decide what you want to record. And add probes to get the data.

Hope this helps,

T.

Rajesh Jangid

unread,
Dec 17, 2013, 11:23:53 PM12/17/13
to ns-3-...@googlegroups.com
Dear Tommaso Pecorella
                                     i want to plot 2 D graph in gnuplot. i have value of nodes in x axis & TIME value in y axis. so can i plot the graph in gnuplot. please give me steps and script og gnuplot.


--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/groups/opt_out.

Tommaso Pecorella

unread,
Dec 18, 2013, 2:36:22 AM12/18/13
to ns-3-...@googlegroups.com
Hi,

gnuplot has an extensive manual here: http://www.gnuplot.info

In order to plot data, usually you first put the data in a file, organised in 2 columns (for the simplest graph), where the first column is the X and the second column is the Y point coordinated (time and value, for example).
The data have to be separated by one or more blank characters (spaces or tabs).
The file have to be a simple text file.
Then you open gnuplot and, assuming that your data are in a file named "data.txt", you give gnuplot the command plot "data.txt"

However, this is the ns-3 user group discussion, not the gnuplot one...

Hence, please, Read The [...] Manual !

T.
Reply all
Reply to author
Forward
0 new messages