|
From: Leonardo L. G. <leo...@gm...> - 2005-07-11 18:51:02
|
Hello, I'm new user to gnuplot, so far I've thanked god it exists several= =20 times. Anyhow, I must plot a graph from a file to a .png, I've got all the command= s=20 right, but it apparently creates a .png file that crashes Windows Explorer= =20 and Internet Explorer. Here are the values that generated such graph: 29.94011976047904 32.0 30.120481927710845 16.0 30.303030303030305 2.0 They are exactly like that in the source file, I have no idea what's going= =20 on, is it because there are too many numbers after the dot thing? If then,= =20 what's the maximum i can put? (It did generate files with that much numbers= =20 after the dot in previous occasions) I'm trying to know why that happens, so far I've figured it isn't lack of= =20 disk space, nor previous files conflicts. Please help me out here... here are the exact commands I used for that, the file it calls, is the one = I=20 described just seconds ago. reset set terminal png medium size 600,400 set output=20 'H:\homewin\30pcento\FLI_Traffic\Traffic1\Out\relatorios\Images\Throughput1= 0- 5.png' set title "Latency Distribution Origin =3D 10 Destination =3D 5" set xlabel "Throughput" set ylabel "Number of packets" plot=20 'H:\homewin\30pcento\FLI_Traffic\Traffic1\Out\relatorios\dat\GraphThroughpu= t10- 5.vloh' using ($1):($2) t "" with linespoints 5 5 And since I'm here, i should also suggest that they warn people that=20 gnuplot won't create the folders for the output file if they doesn't exist,= =20 thus, won't create the file at all. Thanks for the attention! |
|
From: Hans-Bernhard B. <br...@ph...> - 2005-07-11 19:20:19
|
Leonardo Luigi Giacomet wrote:
> Anyhow, I must plot a graph from a file to a .png, I've got all the commands
> right, but it apparently creates a .png file that crashes Windows Explorer
> and Internet Explorer.
I tried to reproduce your failure using the distributed native Windows
binary of gnuplot version 4.0.0, but all went nicely. Which means
whatever the actual problem is, it's related to one of the aspects that
differ between the box I tested this on, and yours:
1) What version and SP level of Windows (and IE)?
2) What version of gnuplot ("show version long" output)?
3) The path names you're using are rather excessively long. That may
contribute to the problem. I used an inline data file, and a very
short output name in the current working directory.
I suggest you try the following modifications to the command script:
Instead of
> set output
> 'H:\homewin\30pcento\FLI_Traffic\Traffic1\Out\relatorios\Images\Throughput10-
> 5.png'
cd 'h:\homewin\30pcento\FLI_Traffic\Traffic1\Out\relatorios'
set output 'Images\Throughput10-5.png'
By cd'ing to the shared toplevel directory, you keep the remaining
commands shorter and more legible. So instead of
> plot
> 'H:\homewin\30pcento\FLI_Traffic\Traffic1\Out\relatorios\dat\GraphThroughput10-
> 5.vloh' using ($1):($2) t "" with linespoints 5 5
you can write
p 'dat\GraphThroughput10-5.vloh' u ($1):($2) t "" w lp lt 5 pt 5
And add a line
set output
at the end of the script, to close the output file.
> And since I'm here, i should also suggest that they warn people that
> gnuplot won't create the folders for the output file if they doesn't exist,
What do you mean 'suggest that [we] warn'? Look:
gnuplot> set out '\doesnt_exist\foo.png'
^
cannot open file; output not changed
If you don't get this message, that's because the version of gnuplot
you're using has no place to put it.
|
|
From: Leonardo L. G. <leo...@gm...> - 2005-07-11 19:49:05
|
Thanks a lot, really helps!
I didn't now about the CD thing at all
Since you said it works, I gotta believe in you.
All that is actually "generated" by my program, so i didn't see that warnin=
g=20
message really, my bad.
Thanks again!
On 7/11/05, Hans-Bernhard Broeker <br...@ph...> wrote:=
=20
>=20
> Leonardo Luigi Giacomet wrote:
> > Anyhow, I must plot a graph from a file to a .png, I've got all the=20
> commands
> > right, but it apparently creates a .png file that crashes Windows=20
> Explorer
> > and Internet Explorer.
>=20
> I tried to reproduce your failure using the distributed native Windows
> binary of gnuplot version 4.0.0, but all went nicely. Which means
> whatever the actual problem is, it's related to one of the aspects that
> differ between the box I tested this on, and yours:
>=20
> 1) What version and SP level of Windows (and IE)?
> 2) What version of gnuplot ("show version long" output)?
> 3) The path names you're using are rather excessively long. That may
> contribute to the problem. I used an inline data file, and a very
> short output name in the current working directory.
>=20
> I suggest you try the following modifications to the command script:
>=20
> Instead of
>=20
> > set output
> >=20
> 'H:\homewin\30pcento\FLI_Traffic\Traffic1\Out\relatorios\Images\Throughpu=
t10-
> > 5.png'
>=20
> cd 'h:\homewin\30pcento\FLI_Traffic\Traffic1\Out\relatorios'
> set output 'Images\Throughput10-5.png'
>=20
> By cd'ing to the shared toplevel directory, you keep the remaining
> commands shorter and more legible. So instead of
>=20
> > plot
> >=20
> 'H:\homewin\30pcento\FLI_Traffic\Traffic1\Out\relatorios\dat\GraphThrough=
put10-
> > 5.vloh' using ($1):($2) t "" with linespoints 5 5
>=20
> you can write
>=20
> p 'dat\GraphThroughput10-5.vloh' u ($1):($2) t "" w lp lt 5 pt 5
>=20
> And add a line
>=20
> set output
>=20
> at the end of the script, to close the output file.
>=20
> > And since I'm here, i should also suggest that they warn people that
> > gnuplot won't create the folders for the output file if they doesn't=20
> exist,
>=20
> What do you mean 'suggest that [we] warn'? Look:
>=20
> gnuplot> set out '\doesnt_exist\foo.png'
> ^
> cannot open file; output not changed
>=20
> If you don't get this message, that's because the version of gnuplot
> you're using has no place to put it.
>
|