|
From: Nibbler <rea...@ho...> - 2006-10-24 04:55:49
|
Hi ! I have "plot-file" where I have gnuplot commands example: set terminal png set output "output.png" set title "My first graph" set xrange[-100:100] etc... I get some of parameters (like xrange) from another place (program sets the xrange values) And now I would like to separate this "plot-file". I would like to have two files. File1 contains titles, (set grid), (plot), etc.. And one file2 contains all parameters what it gets from another place. So is this possible? Can I somehow do like this: File 1 set terminal png set output "output.png" set title "My first graph" read xrange from file2 ?? File 2 set xrange[-100:100] etc.. Another question: I have plot-file which draws filledcurves. It works fine when the picture comes to screen, but if I try to make output then the picture is ok, but there aren't any filledcurves ? -- View this message in context: http://www.nabble.com/Can-gnuplot-read-parameters-from-another-file--tf2499304.html#a6967096 Sent from the Gnuplot - Dev mailing list archive at Nabble.com. |
|
From: Ethan M. <merritt@u.washington.edu> - 2006-10-24 19:45:21
|
On Monday 23 October 2006 09:55 pm, Nibbler wrote: > > I would like to have two files. File1 contains titles, (set grid), > (plot), etc.. And one file2 contains all parameters what it gets from > another place. > > So is this possible? Can I somehow do like this: > > File 1 > set terminal png > set output "output.png" > set title "My first graph" > read xrange from file2 ?? load "file2" > File 2 > > set xrange[-100:100] > etc.. > Another question: > > I have plot-file which draws filledcurves. It works fine when the > picture comes to screen, but if I try to make > output then the picture is ok, but there aren't any filledcurves ? You neglect to tell us what *kind* of output. But let me guess - you are creating a PostScript or *.eps file, right? The common PostScript viewers (ghostview, gv) have a bug that does not draw pattern-filled areas unless you turn off anti-aliasing in the Options menu. It should come out fine on an actual printer, however. If I have guessed wrong, well - you need to provide more information. -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle WA |
|
From: <br...@ph...> - 2006-10-24 20:41:05
|
Nibbler wrote: > I would like to have two files. File1 contains titles, (set grid), (plot), > etc.. And one file2 contains all parameters what it gets from another place. Just load "file2" from within file1. > I have plot-file which draws filledcurves. It works fine when the > picture comes to screen, but if I try to make output then the picture > is ok, but there aren't any filledcurves ? How do you "make output"? I.e. which terminal driver, which options? |
|
From: Nibbler <rea...@ho...> - 2006-10-25 05:39:33
|
Thanks again for your advice Hans-Bernhard. And thanks for reply Ethan. How do you "make output"? I.e. which terminal driver, which options? set terminal png set output "output.png" set title "Title" set xlabel 'Time' tc lt 4 set ylabel 'Data' tc lt 4 set xdata time set timefmt "%Y-%m-%d %H:%M:%S"=20 set grid plot "data.dat" using 1:3 with filledcurve 1 reset If i use previous code I get picture where is just a lines, but if I leave these out set terminal png set output "output.png" then I get picture where is filledcurves. My gnuplot version is 4.0 Hans-Bernhard Br=C3=B6ker wrote: >=20 > Nibbler wrote: >=20 >> I would like to have two files. File1 contains titles, (set grid), >> (plot), >> etc.. And one file2 contains all parameters what it gets from another >> place. >=20 > Just >=20 > =09load "file2" >=20 > from within file1. >=20 >> I have plot-file which draws filledcurves. It works fine when the >> picture comes to screen, but if I try to make output then the picture >> is ok, but there aren't any filledcurves ? >=20 > How do you "make output"? I.e. which terminal driver, which options? >=20 >=20 > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta >=20 >=20 --=20 View this message in context: http://www.nabble.com/Can-gnuplot-read-parame= ters-from-another-file--tf2499304.html#a6986538 Sent from the Gnuplot - Dev mailing list archive at Nabble.com. |
|
From: Ethan M. <merritt@u.washington.edu> - 2006-10-25 20:33:57
|
On Tuesday 24 October 2006 10:39 pm, Nibbler wrote:
>
> If i use previous code I get picture where is just a lines, but if I
> leave these out
> set terminal png
> set output "output.png"
>
> then I get picture where is filledcurves.
Please see sample output at
http://gnuplot.sourceforge.net/demo/fillcrvs.html
These are png plots made by gnuplot version 4.0
> My gnuplot version is 4.0
It is possible that your copy of gnuplot, even though it is
version 4.0, was built using a very old png driver. You can
tell by inspecting the output of "help set term png" or
"show version long". If that is the case, you'll either
have to rebuild gnuplot with the current png driver
(which is, after all, itself more that 5 years old) or
save your plot in some other format like *.eps and then
convert to png in a separate step.
--
Ethan A Merritt
Biomolecular Structure Center
University of Washington, Seattle WA
|
|
From: <br...@ph...> - 2006-10-25 20:33:30
|
Nibbler wrote: > How do you "make output"? I.e. which terminal driver, which options? > > set terminal png > set output "output.png" Looks like your gnuplot was compiled with the "wrong" PNG driver. There are two drivers going by that name. Only one of them has ever had PM3D support. See 'show version long'. |