|
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.
|