home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!news.ysu.edu!psuvm!frmop11!barilvm!vms.huji.ac.il!wisipc.weizmann.ac.il!menora.weizmann.ac.il!dov
- Newsgroups: comp.lang.tcl
- Subject: wafe strangeties
- Message-ID: <1992Aug16.074258.26726@wisipc.weizmann.ac.il>
- From: dov@menora.weizmann.ac.il (Dov Grobgeld)
- Date: Sun, 16 Aug 1992 07:42:58 GMT
- Sender: news@wisipc.weizmann.ac.il
- Organization: Weizmann Institute of Science, Computation Center.
- X-Newsreader: Tin 1.1 PL4
- Lines: 92
-
- I have found some strange behaviour with wafe. Some of it might be
- widget errors, other might be platform dependant.
-
- My system is RS/6000, AIX 3.1.5, tk 2.2, tcl 6.4, wafe 0.92.
-
- Consider the following program:
-
- --- Beg of file ---
- #!/usr/local/bin/perl
- $WafeLib = $ENV{'WAFELIB'} || "/usr/lib/X11/wafe";
- require "$WafeLib/perl/wafe.pl";
-
- $chunkSize= 1000;
- open(IN, shift);
- while(<IN>) {
- chop;
- ($x,$y)=/(\S+)\s+(\S+)/o;
- $data.= "$x/$y ";
- if (length($data) > $chunkSize) {
- &Xui("append data \"$data \"");
- $data='';
- }
- }
- &Xui("append data \"$data \"");
-
- &UI(<<EOUI);
- form f topLevel
- plotter p f height 300 width 500
- xyLinePlot lp p
- axis x p
- axis y p vertical true
- sV p xAxis x yAxis y
- eval xyLinePlotAttachData lp \$data
- realize
- EOUI
-
- while(<>) {
- print;
- }
- --- End of file ---
-
- If $chunkSize is too big (e.g. 5000) I get the following error from wafe:
-
- Wafe(main): Uncomplete command or communication buffer overflow, >% append
- data "...(deleted approx 5000 characters)..."<
-
- I guess I could live with this error in this case. Unfortunately I get
- the same error message when running xwafemail with the -F flag, which
- is much more critical.
-
- Now for strangety number 2. If I change the height of the plot to 400
- (plotter p f height 400 width 500) and try to plot the following file
-
- --- begin file ---
- 0 1.25
- 1.57 0.63
- --- end file ---
-
- I get the following error:
-
- Assertion failed: i < ac->num_tics, file Axis.c, line 387
- IOT trap (core dumped)
-
- The error goes away if I change the height of the graph back to 300.
-
- The third critical error I found is if I create an empty file and
- try to plot it with the command
-
- xplot empty
-
- The error message I get is:
-
- X Error of failed request: BadLength (poly request too large or internal Xlib length error)
- Major opcode of failed request: 65 (X_PolyLine)
- Serial number of failed request: 60
- Current serial number in output stream: 107
-
- Again this error is somewhat acceptable in this context. But I also got
- the error from the xdesign program when I requested a plot widget.
-
- One small complaint. I could nowhere in the documentation find the syntax
- for the parameters of xyLinePlotAttachData . I had to resort to reading
- source code.
-
- --
- ___ ___
- / o \ o \
- Dov Grobgeld ( o o ) o |
- The Weizmann Institute of Science, Israel \ o /o o /
- "Where the tree of wisdom carries oranges" | | | |
- _| |_ _| |_
-
-