You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(2) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(3) |
Feb
(1) |
Mar
(2) |
Apr
(22) |
May
(52) |
Jun
(43) |
Jul
(36) |
Aug
(59) |
Sep
(37) |
Oct
(55) |
Nov
(39) |
Dec
(36) |
| 2005 |
Jan
(64) |
Feb
(40) |
Mar
(62) |
Apr
(58) |
May
(256) |
Jun
(77) |
Jul
(80) |
Aug
(39) |
Sep
(56) |
Oct
(36) |
Nov
(113) |
Dec
(68) |
| 2006 |
Jan
(43) |
Feb
(64) |
Mar
(69) |
Apr
(60) |
May
(71) |
Jun
(53) |
Jul
(63) |
Aug
(63) |
Sep
(76) |
Oct
(85) |
Nov
(82) |
Dec
(73) |
| 2007 |
Jan
(75) |
Feb
(82) |
Mar
(84) |
Apr
(104) |
May
(67) |
Jun
(101) |
Jul
(107) |
Aug
(138) |
Sep
(128) |
Oct
(106) |
Nov
(112) |
Dec
(112) |
| 2008 |
Jan
(94) |
Feb
(87) |
Mar
(146) |
Apr
(169) |
May
(75) |
Jun
(26) |
Jul
(26) |
Aug
(7) |
Sep
(18) |
Oct
(53) |
Nov
(42) |
Dec
(19) |
| 2009 |
Jan
(43) |
Feb
(39) |
Mar
(18) |
Apr
(45) |
May
(66) |
Jun
(87) |
Jul
(56) |
Aug
(41) |
Sep
(56) |
Oct
(139) |
Nov
(98) |
Dec
(88) |
| 2010 |
Jan
(81) |
Feb
(79) |
Mar
(83) |
Apr
(97) |
May
(124) |
Jun
(84) |
Jul
(53) |
Aug
(85) |
Sep
(89) |
Oct
(50) |
Nov
(98) |
Dec
(78) |
| 2011 |
Jan
(97) |
Feb
(74) |
Mar
(68) |
Apr
(54) |
May
(63) |
Jun
(59) |
Jul
(65) |
Aug
(58) |
Sep
(37) |
Oct
(40) |
Nov
(59) |
Dec
(35) |
| 2012 |
Jan
(16) |
Feb
(56) |
Mar
(63) |
Apr
(25) |
May
(48) |
Jun
(58) |
Jul
(20) |
Aug
(13) |
Sep
(43) |
Oct
(35) |
Nov
(20) |
Dec
(17) |
| 2013 |
Jan
(22) |
Feb
(11) |
Mar
(51) |
Apr
(34) |
May
(57) |
Jun
(27) |
Jul
(70) |
Aug
(30) |
Sep
(38) |
Oct
(53) |
Nov
(40) |
Dec
(25) |
| 2014 |
Jan
(26) |
Feb
(35) |
Mar
(60) |
Apr
(12) |
May
(17) |
Jun
(15) |
Jul
(9) |
Aug
(18) |
Sep
(46) |
Oct
(18) |
Nov
(19) |
Dec
(15) |
| 2015 |
Jan
(17) |
Feb
(28) |
Mar
(21) |
Apr
(54) |
May
(36) |
Jun
(8) |
Jul
(30) |
Aug
(13) |
Sep
(3) |
Oct
(28) |
Nov
(3) |
Dec
(3) |
| 2016 |
Jan
(11) |
Feb
(9) |
Mar
(29) |
Apr
(10) |
May
(8) |
Jun
(5) |
Jul
(50) |
Aug
(57) |
Sep
(13) |
Oct
(5) |
Nov
(17) |
Dec
(11) |
| 2017 |
Jan
(3) |
Feb
(23) |
Mar
(16) |
Apr
(7) |
May
(15) |
Jun
(12) |
Jul
(48) |
Aug
(15) |
Sep
(3) |
Oct
(20) |
Nov
(28) |
Dec
(21) |
| 2018 |
Jan
(13) |
Feb
(21) |
Mar
(21) |
Apr
(7) |
May
(3) |
Jun
(7) |
Jul
(27) |
Aug
(38) |
Sep
(4) |
Oct
(30) |
Nov
(22) |
Dec
|
| 2019 |
Jan
(5) |
Feb
(16) |
Mar
(1) |
Apr
(9) |
May
(7) |
Jun
(20) |
Jul
(13) |
Aug
(3) |
Sep
(2) |
Oct
(2) |
Nov
(2) |
Dec
(4) |
| 2020 |
Jan
(6) |
Feb
(11) |
Mar
(1) |
Apr
(18) |
May
(4) |
Jun
(5) |
Jul
(12) |
Aug
(1) |
Sep
(3) |
Oct
(7) |
Nov
(1) |
Dec
(17) |
| 2021 |
Jan
(1) |
Feb
(11) |
Mar
(16) |
Apr
(6) |
May
(5) |
Jun
(1) |
Jul
(1) |
Aug
(2) |
Sep
(8) |
Oct
(10) |
Nov
(4) |
Dec
(4) |
| 2022 |
Jan
(9) |
Feb
(35) |
Mar
(4) |
Apr
|
May
(3) |
Jun
(49) |
Jul
(11) |
Aug
|
Sep
(5) |
Oct
(2) |
Nov
(16) |
Dec
(13) |
| 2023 |
Jan
|
Feb
(8) |
Mar
(3) |
Apr
|
May
(8) |
Jun
|
Jul
(5) |
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
(2) |
| 2024 |
Jan
(6) |
Feb
(9) |
Mar
|
Apr
(26) |
May
(24) |
Jun
|
Jul
(4) |
Aug
(2) |
Sep
(1) |
Oct
(10) |
Nov
(9) |
Dec
|
| 2025 |
Jan
|
Feb
(22) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(1) |
Nov
|
Dec
(4) |
| 2026 |
Jan
|
Feb
(24) |
Mar
(20) |
Apr
(18) |
May
(2) |
Jun
(2) |
Jul
(2) |
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: solled <so...@ms...> - 2006-07-13 13:36:14
|
Hi, I'm new to gnuplot and I am having trouble with splot. I have a data file with three columns of data and I simply want to plot a point lying at coordinates x,y,z given by the three columns. I keep getting messages such as: "empty y range [0:0], adjusting to [-1:1]" and the output's no good. What's wrong? -- View this message in context: http://www.nabble.com/Using-splot-tf1937393.html#a5308233 Sent from the Gnuplot - User forum at Nabble.com. |
|
From: Filopo <fel...@ho...> - 2006-07-13 02:11:18
|
Hey guys, sorry if this question is somewhat dumb but i'm new to gnuplot and i couldn't find a solution. Is there a command to add that diagonal pair of tics for skipping some interval in the axis? Say for example the first part of the y axis is [0,5 (...double tic...) 110,115,120, etc. (I'm trying to upload a jpg to illustrate my question, i hope it works). Thanks in advance for any help. Cheers, Felipe http://www.nabble.com/user-images/3191.jpg -- View this message in context: http://www.nabble.com/Need-help-with-skipping-an-axis-interval-tf1934657.html#a5300903 Sent from the Gnuplot - User forum at Nabble.com. |
|
From: <br...@ph...> - 2006-07-12 20:55:44
|
ZhiGang Qi wrote: > I want plot a data file by using another data file as the line style. Not any better than you could use two columns from different files as the x and y data for a single curve. You have to *join* those files first. See the 'paste' or 'join' commands if you're on Unix or something like it. Once that's done, you'll need the upcoming version 4.2 to get control over line color from a data column. |
|
From: <br...@ph...> - 2006-07-12 20:53:12
|
Brian Curtis wrote: > > I am having problems using the zooming feature in gnuplot. When i run > gnuplot from command line I can "set mouse" then "plot x" and it will > allow me to zoom. When I use "gnuplot -persist < test.txt" in which > test.txt has only the two lines "set mouse" and "plot x" it doesn't > allow me to zoom. What can I do so that the "gnuplot -persist < > test.txt" will allow me to zoom?, Nothing. If you want interaction, -persist is the wrong technique to get gnuplot to keep the graph open after the script is ended. You need to go back to interactive gnuplot (i.e. the mode where you can type additional commands). Use gnuplot test.txt - |
|
From: <br...@ph...> - 2006-07-12 20:51:36
|
ZhiGang Qi wrote: > Hi, > > Can the line-style be a list viriable? No --- because there's no such thing as a list variable in gnuplot. |
|
From: <br...@ph...> - 2006-07-12 20:40:01
|
Bernd Griesebock wrote: > Hi there, > > I have a problem with the grid of the surface of experimental data. Is > there a possibility to change the grid "density" in x-direction of a > 3d-plot? > Since I have a very large number of data points the grid results in an > almost black surface. I don't want to use something like > splot 'data.dat' ev 2::0::2000: using ... > Is it possible to tell gnuplot to use for example every second data > point for the grid in x-direction? No. If you plot with lines, and the data forms a grid, gnuplot will plot that. If you don't like that, you have to re-format your data. |
|
From: <br...@ph...> - 2006-07-12 20:37:57
|
Jeff Sadino wrote: > I am trying to map the surface of Saturn's largest moon, Titan for a > NASA summer research project. As a rough draft, I would like to plot > the temperature (colored red) at the longitude(x) and latitude(y) > coordinates. My data file is tab delimited in three columns (x,y,T). > I am also missing some x,y locations, which I would like to leave > blank. So you want big, false-coloured point symbols wherever you have data. No interpolation in between, no smoothing, nothing. In that case splot 'data' u 1:2:3 with points palette pointsize 10 or something like that, in any reasonably current gnuplot, should do it. > points. Finally, I would like to be able to plot this not on a > rectangular cartesion coordinate system, but on a planetographic > (global projection) coordinate system. See 'world.dem' to learn about handling of spherical data. |
|
From: Jeff S. <js...@my...> - 2006-07-12 15:53:25
|
I am trying to map the surface of Saturn's largest moon, Titan for a NASA summer research project. As a rough draft, I would like to plot the temperature (colored red) at the longitude(x) and latitude(y) coordinates. My data file is tab delimited in three columns (x,y,T). I am also missing some x,y locations, which I would like to leave blank. As a final report, I would like the data point to be able to take on different geometries (circle, hexagon, arbitrary shape, etc) and different sizes as well as be able to overlap with neighboring data points. Finally, I would like to be able to plot this not on a rectangular cartesion coordinate system, but on a planetographic (global projection) coordinate system. I've spent two days trying everything from gnuplot, matlab, matplotlib and others trying to do this, but to no avail. Any suggestions would be very welcomed. |
|
From: Bernd G. <gri...@un...> - 2006-07-12 09:43:46
|
Hi there, I have a problem with the grid of the surface of experimental data. Is there a possibility to change the grid "density" in x-direction of a 3d-plot? Since I have a very large number of data points the grid results in an almost black surface. I don't want to use something like splot 'data.dat' ev 2::0::2000: using ... Is it possible to tell gnuplot to use for example every second data point for the grid in x-direction? Thank you for help! Regards Bernd |
|
From: Harry P. <ra...@gm...> - 2006-07-12 08:04:25
|
Thanks, that worked! Is there a way to display the contour plot below a splot surface in a single color? -- View this message in context: http://www.nabble.com/position-of-contour-plot-base-tf1906015.html#a5284549 Sent from the Gnuplot - User forum at Nabble.com. |
|
From: Koto N. <kot...@gm...> - 2006-07-12 05:50:39
|
Dear Roberto,
Thank you millions.
You fixed every problem I faced. I spend very hard time to solve this
problem so I really appreciate you.
As a feed back for the future developer like me, let me write what I did.
>From C# call wgnuplot with command file as following:
Process.Start("wgnuplot.exe", "command.gp");
Also in the command.gp file is made by following. This was done at
the wgnuplot command line.
plot "data.txt" using 1:3 title "testline" with linesp
set terminal png size 320, 240
set output "picture.png"
replot
set output
set terminal windows
save "command.gp"
Where data.txt is a file contains data, picture.png is a png file that
shows the plot of data's first colomn vs third colomn, and command.gp
has all commans above except the last line.
So when I run at the DOS window as:
wgnuplot command.gp
Then I could get the picutre.png at the working directory without any
input at the command line of wgnuplot.
When the C# command runs, then I could get the picture.png file. This
is very nice for C# since it could use the wgnuplot functions and use
the result.
Thank you very much again Roberto, now I can move on.
Regards,
Koto
On 7/11/06, Roberto Baginski <rba...@uo...> wrote:
> Koto Norose wrote:
>
> > I cannot use the command Process.Start("wgnuplot.exe", "load
> > 'command.gp'"); in C#.
> > The proof is wgnuplot.exe, load 'command.gp' in DOS window doesn't work.
> > So please let me know how to type in DOS window to make wgnuplot do
> > some commands.
>
> Dear Koto,
>
> To launch a batch session of gnuplot using a command file "command.gp"
> from a command prompt
>
> wgnuplot.exe command.gp
>
> See also
>
> help batch
>
> Regards,
> Roberto
>
|
|
From: Roberto B. <rba...@uo...> - 2006-07-12 04:54:27
|
Koto Norose wrote:
> I cannot use the command Process.Start("wgnuplot.exe", "load
> 'command.gp'"); in C#.
> The proof is wgnuplot.exe, load 'command.gp' in DOS window doesn't work.
> So please let me know how to type in DOS window to make wgnuplot do
> some commands.
Dear Koto,
To launch a batch session of gnuplot using a command file "command.gp"
from a command prompt
wgnuplot.exe command.gp
See also
help batch
Regards,
Roberto
|
|
From: Koto N. <kot...@gm...> - 2006-07-12 01:01:39
|
Yes, needless say, I would like to show what you said.
In short, I wrote:
I cannot use the command Process.Start("wgnuplot.exe", "load
'command.gp'"); in C#.
The proof is wgnuplot.exe, load 'command.gp' in DOS window doesn't work.
So please let me know how to type in DOS window to make wgnuplot do
some commands.
Please read carefully. I didn't talk the first two lines above separately.
Now I"m thinking that I will change the source code of wgnuplot to
take an argument. Does anyone know where should I get the source
code?
Thank you very much,
Koto
P.S. I wrote this message again since I need to post the message to
the list also. Sorry about this round for you, Hans...
|
|
From: ZhiGang Q. <zq...@cs...> - 2006-07-11 16:40:34
|
Hi, Can the line-style be a list viriable? Best, Zhigang |
|
From: Brian C. <bcu...@ya...> - 2006-07-11 15:36:31
|
I am having problems using the zooming feature in gnuplot. When i run gnuplot from command line I can "set mouse" then "plot x" and it will allow me to zoom. When I use "gnuplot -persist < test.txt" in which test.txt has only the two lines "set mouse" and "plot x" it doesn't allow me to zoom. What can I do so that the "gnuplot -persist < test.txt" will allow me to zoom?, or should I submit a bug report? Thanks for the help! ~Brian Curtis |
|
From: Mariano J. P. <mar...@ve...> - 2006-07-11 14:33:18
|
Ladies, Gentlemen,
A very powerful and useful program for which I am eternally grateful. I
must ask, however, if anyone has implemented it into windows DLL that can be
called directly from VB.Net? Any information would be greatly appreciated.
Mariano J. Padilla
|
|
From: ZhiGang Q. <zq...@cs...> - 2006-07-11 14:20:55
|
Hi, all, I want plot a data file by using another data file as the line style. I have no idea about it now, can you give me a tip? for a wrong example: plot "data1.txt" using ($1< 0 ? $1 : 1/0) with lines "data2.txt" data1.txt ------------ 1 2 3 4 5 6 ------------ data2.txt ----------- 1 1 2 2 3 3 ------------ Best, Zhigang |
|
From: Bernd G. <gri...@un...> - 2006-07-09 21:34:10
|
Hi there, I have a problem with the grid of the surface plotting some experimental data. I have two plots made (see attachment) using this little script: ++++++++++++++++++++++++++++++ unset clip points set clip one unset clip two set bar 1.000000 set border 31 lt -1 lw 1.000 set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x,y set format x "%g" set format y "%g" set format x2 "%g" set format y2 "%g" set format z "%g" set angles radians unset grid set key title "" unset key unset label unset arrow set nolinestyle unset logscale set offsets 0, 0, 0, 0 set pointsize 1 set encoding iso_8859_1 unset polar unset parametric set view 60, 30, 1, 1 set samples 100, 100 set isosamples 10, 10 set surface unset contour set clabel '%8.3g' set mapping cartesian set hidden3d offset 1 trianglepattern 3 undefined 1 altdiagonal bentover set cntrparam order 4 set cntrparam linear set cntrparam levels auto 5 set cntrparam points 5 set size ratio 0 1,1 set origin 0,0 set data style lines set function style lines set xzeroaxis lt -2 lw 1.000 set x2zeroaxis lt -2 lw 1.000 set yzeroaxis lt -2 lw 1.000 set y2zeroaxis lt -2 lw 1.000 set tics in set ticslevel 0 set ticscale 1 0.5 set mxtics default set mytics default set mx2tics default set my2tics default set xtics border mirror norotate autofreq set ytics border mirror norotate autofreq set ztics border nomirror norotate autofreq unset x2tics unset y2tics set title "" 0.000000,0.000000 "" set timestamp "" bottom norotate 0.000000,0.000000 "" set rrange [ * : * ] noreverse nowriteback # (currently [-0.00000:10.0000] ) set trange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] ) set urange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] ) set vrange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] ) set xlabel "data point" 0.000000,0.000000 "" set x2label "" 0.000000,0.000000 "" set timefmt "%d/%m/%y\n%H:%M" set xrange [ 20.0000 : 100.000 ] noreverse nowriteback set x2range [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] ) set ylabel "Zeit [s]" 0.000000,0.000000 "" set y2label "" 0.000000,0.000000 "" set yrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] ) set y2range [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] ) set zlabel "Absorption" 0.000000,0.000000 "" set zrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] ) set zero 1e-08 set lmargin -1 set bmargin -1 set rmargin -1 set tmargin -1 set locale "C" splot 'normalized3d.dat' ev :10::3700::4300 u 1:(column(-1)/2):2 ++++++++++++++++++++++++++ I know there are some parameters which are not used for plotting those plots in the attachment. Plot1 is more or less how I want them to look like. Plot2 is made from a data file which has twice as much data points as the datafile for plot1. As one can see the surface is too "dark". Is it possible to make the grid of the surface in plot2 look like the grid in plot1? To be more precisely, is it possible to use for the grid (and only for the grid) every second data point instead of every data point without loosing the resolution of the plot? I don't want something like: splot 'normalized3d.dat' ev 2:10::3700::4300 u 1:(column(-1)/2):2 Set iso/samples is not working for the data file. How can I make the numbers not overlapping each other and not overlapping the axes? How can I get rid of the -0.2 of the z-axes (ticslevel should not change)? Thank you for your help! regards, Bernd |
|
From: Jason <gn...@co...> - 2006-07-08 18:25:16
|
I'm not entirely sure where to look here. This may be a bug or a configuration issue. This is with gnuplot 4.0 patchlevel 0 on Gentoo Linux. I'm trying to plot some graphs with GNU plot to a graphic file. For both 'png' and 'jpeg' terminal type, the plot comes out incorrect. When I use the x11 terminal, things look fine. The background is black. The text does not appear (I imagine that it is black as well so it's just not visible). Here's a sample data and command. --- values.txt 1 233 233.00 180 233.00 2 235 234.05 180 3 231 232.93 180 4 230 232.08 180 5 229 231.32 180 231.32 --- --- gnuplot.cmds set terminal jpeg medium size 800x600 set yrange [170:*] set bars 0.0 plot 'values.txt' using 1:3 with lines notitle, '' using 1:2 notitle, '' using 1:2:2:3:3 with candlesticks notitle, '' using 1:4 with lines notitle, '' using 1:5 with lines title 'Trend: -2.3 / week' --- You can see a sample of this output at http://www.cougarcorp.net/gnuplot-problem/gnuplot.jpg Even the basic 'test' doesn't work right: --- gnuplot.cmds set terminal jpeg medium size 800x600 test --- http://www.cougarcorp.net/gnuplot-problem/gnutest.jpg Is it a library problem? And I doing something incorrect? Have I found a bug? I'm not quite sure, so comments and suggestions are more than welcome. Thanks Jason |
|
From: <br...@ph...> - 2006-07-07 20:48:24
|
Harry Plotter wrote: > Is it possible to set the z-position of the base in which the contours are > plotted? Yes. The command you're looking for was 'set ticslevel' until now. It'll be 'set xyplane' soon. Look it up in your help. |
|
From: Harry P. <ra...@gm...> - 2006-07-07 11:59:26
|
Is it possible to set the z-position of the base in which the contours are plotted? Whenever I use "set contour base", gnuplot draws that base at an arbitrary z-position below the graph. However, since I want to plot data points inside the contour base, I need the z-position of it. -- View this message in context: http://www.nabble.com/position-of-contour-plot-base-tf1906015.html#a5216042 Sent from the Gnuplot - User forum at Nabble.com. |
|
From: Palmar <pal...@ya...> - 2006-07-06 10:35:48
|
Dear gnuplot-users, I am using the pdf terminal. "set size" is reltaive to the default size of the terminal. So I cannot change the width of pdf, for example set size square does not produce a square pdf but a square plot which is centered at the left side of the pdf. Does anybody know a way to produce for example a square pdf with gnuplot or more general a pdf with length a and width b (corresponding to "set size a,b")? Thanks a lot for help! -- View this message in context: http://www.nabble.com/Width-of-pdf-tf1899753.html#a5197028 Sent from the Gnuplot - User forum at Nabble.com. |
|
From: Daniel G. <spa...@gm...> - 2006-07-04 12:00:49
|
Thanks a lot, it was in fact the ios::binary stream opening option! In fact, I do use this option in other parts of my program where binary I/O is needed, but I kept thinking it was an issue with gnuplot and completely missed I had somehow deleted it. Regarding my overhead comment, I do not have the whole gnuplot source code, only single files. Since they recursively include other files, I would have had to either get the whole source, or search for all files I needed. Well, I should have just DL'ed the full source. Thanks again for your answer, totally fixed my problem. (I do get x- and y- axis mixed up, as reported elsewhere, but this can be fixed by either switching the input order or "using 2:1:3"). This is with regards to gnuplot 4.0, by the way. Daniel -- View this message in context: http://www.nabble.com/Trouble-with-%22binary%22-option-for-splot-tf1883880.html#a5166284 Sent from the Gnuplot - User forum at Nabble.com. |
|
From: <br...@ph...> - 2006-07-03 17:23:49
|
Daniel Geberth wrote: > Hello all. > > I have trouble getting gnuplot to accept binary data generated via an > external program. I wrote a C++ routine to output files in the format > specified by the gnuplot help (topic "binary"), but I always get an error > message saying "binary file read error: format unknown". What version of gnuplot did you try this with? I ask because binary file handling was re-done mostly from scratch between 4.0 and now, so there's a chance this broke something. > I took a look inside the binary.c file in order to understand > where my error lies, but I think the output format should be correct (ie, > not end of line characters required). It's more than that. The tricky part is that you must keep your C++ stream I/O library from trying to change the representation of line endings. In C, you would use "wb" mode to get this effect. I'm not sure how one would do it in C++, but from a quick look it seems you have to set the openmode to binary. > I would vastly prefer to not use > fwrite_matrix, because it generates a huge overhead in terms of files I need > to include (and find, first of all), I can't quite see how one C file and its header can amount to "huge overhead"... |
|
From: Daniel G. <spa...@gm...> - 2006-07-03 11:03:43
|
Hello all.
I have trouble getting gnuplot to accept binary data generated via an
external program. I wrote a C++ routine to output files in the format
specified by the gnuplot help (topic "binary"), but I always get an error
message saying "binary file read error: format unknown". Below is the piece
of code that I use to generate the files, could anybody tell me what is
wrong with it? I took a look inside the binary.c file in order to understand
where my error lies, but I think the output format should be correct (ie,
not end of line characters required). I would vastly prefer to not use
fwrite_matrix, because it generates a huge overhead in terms of files I need
to include (and find, first of all), so if anybody could have a look at this
and tell me where it fails, I would be most grateful.
(("data" is the data to be plotted, in a single dimension float array
ordered as consecutive rows))
ofstream file(currentfilename.c_str());
//first line: maxY, y0, y1, ..., y_maxY-1
file.write((char*) &fmaxY, sizeof fmaxY);
for(float f=0; f<maxY; f+=1){
file.write((char*) &f, sizeof f);
}
//all consecutive lines:
//x0, z(0,0), z(0,1), ... , z(0,maxY-1)
//x1, z(1,0), z(1,1), ... , z(1,maxY-1)
//...
for(float x=0; x < maxX; x += 1){
file.write((char*) &x, sizeof x);
for(us y=0; y < maxY; y++){
file.write((char*) &(data[y*maxX+(int)x]), sizeof
data[y*maxX+(int)x]);
}
}
file.close()
--
View this message in context: http://www.nabble.com/Trouble-with-%22binary%22-option-for-splot-tf1883880.html#a5149944
Sent from the Gnuplot - User forum at Nabble.com.
|