Thread View: comp.graphics.apps.gnuplot
2 messages
2 total messages
Started by u600256@rho.LANL
Thu, 01 Jun 1995 00:00
Re: 2D binary data?
Author: u600256@rho.LANL
Date: Thu, 01 Jun 1995 00:00
Date: Thu, 01 Jun 1995 00:00
13 lines
544 bytes
544 bytes
ggg@crl.com (Gilbert Goodwill) asked about 2D binary data. gnuplot 3.5 has no provision for it. Sadly, neither does 3.6, at least as of now. There's no major hangup that I'm aware of, except that the folks doing the majority of the work have had other priorities. One thing that will be needed is a standard format: do we want just (x,y) pairs as far as the eye can see? That's probably easiest, but it doesn't allow for error bars or other glitzy stuff. But the 3D format is similarly limiting. Dick Crawford, aka rccrawford@lanl.gov
Re: 2D binary data?
Author: ggg@crl.com (Gil
Date: Tue, 06 Jun 1995 00:00
Date: Tue, 06 Jun 1995 00:00
54 lines
2103 bytes
2103 bytes
crawford richard (u600256@rho.LANL.GOV) wrote: : ggg@crl.com (Gilbert Goodwill) asked about 2D binary data. : gnuplot 3.5 has no provision for it. Sadly, neither does 3.6, at least : as of now. There's no major hangup that I'm aware of, except that the : folks doing the majority of the work have had other priorities. One : thing that will be needed is a standard format: do we want just (x,y) : pairs as far as the eye can see? That's probably easiest, but it doesn't : allow for error bars or other glitzy stuff. But the 3D format is similarly : limiting. : Dick Crawford, aka rccrawford@lanl.gov Well, I needed to speed things up (I'm using named pipes for the output of graphs that often have lots of points in them) so I made some slight modifications to the 3.5 command.c. They're real simple, only handling 2 columns of data, but for only 20 or so lines, it does the trick. I'm not sure I handled all machines correctly (I I just followed the examples for the 3D binary stuff) but it works well on SVR4 and SVR3 machines for me. # diff command.bak command.c 1051a1052,1075 > /* mod - GGG */ > if(is_binary_file(data_fp)){ > #if defined(MSDOS)||defined(ATARI)||defined(OS2)||defined(_Windows)||de fined(DOS386) > /* file must be opened with binary flag. the old cr/lf problem ag ain */ > #ifdef PIPES > if( pipe_open ) { > pclose(data_fp); > data_fp=NULL; > pipe_openรบLSE; > int_error("binary data from pipes is not implemented", NO_CARET); > } > #endif > data_fp = freopen(data_file, "rb", data_fp); > #endif > while(fread(fval, sizeof(float), 2, data_fp) == 2){ > if (i >= this_plot->p_max) { > cp_extend(this_plot, i + (i < 1000 ? i : 1000)); > } > v[0] = fval[0]; > v[1] = fval[1]; > store2d_point(this_plot, i++, v[0], v[1], v[1], v [1], -1.0); > } > } else > /* end mod - GGG */
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads