Results 1 to 8 of 8
hello,everyone.
I found that there are some graphs that is complicated in txt file, and it takes time to draw the graph in the txt file directly. Here is an ...
- 03-19-2009 #1Just Joined!
- Join Date
- Mar 2009
- Posts
- 6
how to draw graph in txt file quickly?
hello,everyone.
I found that there are some graphs that is complicated in txt file, and it takes time to draw the graph in the txt file directly. Here is an example below.
+-----------+ +-----------+
| Guest | | Guest |
| A | | B |
| +---+ | | +---+ |
| |NIC| | | |NIC| |
+---+-+-+---+ +---+-+-+---+
^ +--------+ +--------+ ^
| | | | | |
+------>+ VLAN 0 +<--> Socket <-->+ VLAN 2 +<------+
| | | |
+--------+ +--------+
Is there some tool that can draw these graphs quickly and can be converted to be displayed in txt file ?
besh wishes,
robert
- 03-19-2009 #2Just Joined!
- Join Date
- Mar 2009
- Posts
- 6
well, the graph format is bad, Here is the link to show the example:
QEMU Networking
- 03-21-2009 #3Linux Engineer
- Join Date
- Apr 2006
- Location
- Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
- Posts
- 1,117
Hi.
See man pic -- an excerpt:
Best wishes ... cheers, drlCode:PIC(1) PIC(1) NAME pic - compile pictures for troff or TeX SYNOPSIS pic [ -nvCSU ] [ filename ... ] pic -t [ -cvzCSU ] [ filename ... ] DESCRIPTION This manual page describes the GNU version of pic, which is part of the groff document formatting system. pic compiles descriptions of pic- tures embedded within troff or TeX input files into commands that are understood by TeX or troff.Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
We look forward to helping you with the challenge of the other 10%.
( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )
- 03-21-2009 #4Linux Engineer
- Join Date
- Apr 2006
- Location
- Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
- Posts
- 1,117
Hi.
Regrettably in trying to provide an example of pic-to-ascii diagrams, I have not yet been able to find an output driver for groff that will translate pic output into ascii.
I'll stop back when / if I find anything ... cheers, drlWelcome - get the most out of the forum by reading forum basics and guidelines: click here.
90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
We look forward to helping you with the challenge of the other 10%.
( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )
- 03-23-2009 #5Just Joined!
- Join Date
- Mar 2009
- Posts
- 6
- 03-24-2009 #6Linux Newbie
- Join Date
- Sep 2007
- Posts
- 161
hi robert,
do you use vim?
there is a vim plugin called "sketch" which lets you draw ascii picture directly.
you can draw freehand, but there's also support for boxes, arrows, copying, etc.
you can check out the tutorial here.
the plugin is available at vim.org.
cheers, kai
PS there are also other plugins for drawing in vim - i haven't tried them.
- 03-24-2009 #7Just Joined!
- Join Date
- Mar 2009
- Posts
- 6
- 03-24-2009 #8Linux Newbie
- Join Date
- Sep 2007
- Posts
- 161
oh, too bad.
it's working for me in gvim 7.0 -- i've installed the plain debian vim packages.
kai


Reply With Quote
