Home > Archive > Fortran > January 2006 > gnuplotfortran
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| cmwang@ucla.edu 2006-01-24, 3:57 am |
| Hi,
I am interested in knowing if I can choose font, set pointsize, etc
using gnuplotfortran as follows:
set term postscript eps enhanced color "Times-Roman" 16
set style line 1 lt 1 lw 2 pt 4
set style line 2 lt -1 lw 2 pt 5
set style line 3 lt 3 lw 2 pt 6
set style line 4 lt 4 lw 2 pt 7
set pointsize 1
set title "MC integrations"
set output "gnutest.ps"
set key top left
set xlabel "log10(N)"
set ylabel "log10(Error)-20 runs"
set xrange [0:4]
plot "mydata" using 1:2 w lp ls 1 title 'MC', "mydata" using 1:3 w lp
ls 2 title 'anti-MC', "mydata" using 1:4 w lp ls 3 title
'qMC',"mydata" using 1:5 w lp ls 4 title 'anti-qMC'
I currently use gnuplot from fortran by write the data into a file and
issue the system command. The di vantage is that the writing process
can be slow. With gnuplot I certainly don't need to do that. But I
am wondering if I can do the same thing I want described above.
Thanks for any suggestion.
Richard
| |
| Madhusudan Singh 2006-01-24, 3:57 am |
| cmwang@ucla.edu wrote:
> Hi,
>
> I am interested in knowing if I can choose font, set pointsize, etc
> using gnuplotfortran as follows:
>
> set term postscript eps enhanced color "Times-Roman" 16
> set style line 1 lt 1 lw 2 pt 4
> set style line 2 lt -1 lw 2 pt 5
> set style line 3 lt 3 lw 2 pt 6
> set style line 4 lt 4 lw 2 pt 7
> set pointsize 1
> set title "MC integrations"
> set output "gnutest.ps"
> set key top left
> set xlabel "log10(N)"
> set ylabel "log10(Error)-20 runs"
> set xrange [0:4]
> plot "mydata" using 1:2 w lp ls 1 title 'MC', "mydata" using 1:3 w lp
> ls 2 title 'anti-MC', "mydata" using 1:4 w lp ls 3 title
> 'qMC',"mydata" using 1:5 w lp ls 4 title 'anti-qMC'
>
>
> I currently use gnuplot from fortran by write the data into a file and
> issue the system command. The di vantage is that the writing process
> can be slow. With gnuplot I certainly don't need to do that. But I
> am wondering if I can do the same thing I want described above.
>
> Thanks for any suggestion.
>
> Richard
Yes.You can have as fine or as coarse a degree of control you want. Look
into the documentation for gnuplot_set, gnuplot_cmd (which is really the
only command you need if you are a total control s er) and
gnuplot_hardcopy.
There are canned and supercanned commands in addition to these to allow for
quick production of most plots in case you want to work with some rather
sensible defaults (or so I think).
I have really fallen behind on releasing the next version which contains a
few bugfixes and Mac OSX and windows support. Maybe sometime soon,
hopefully.
| |
| cmwang@ucla.edu 2006-01-24, 3:57 am |
| Thanks for the reply. I am using Mac os x, it's a unix like system,
and I hope it will work.
Another question: does the program pass data directly to gnuplot
through system or it writes the result into a file?
Richard
| |
| Madhusudan Singh 2006-01-24, 3:57 am |
| cmwang@ucla.edu wrote:
> Thanks for the reply. I am using Mac os x, it's a unix like system,
> and I hope it will work.
>
> Another question: does the program pass data directly to gnuplot
> through system or it writes the result into a file?
>
> Richard
The program directly passes commands to gnuplot through kernel IPC.
Btw, the library needs to be modified for use on Mac OSX. I have the
instructions (from another Mac user) in case you want them. They will be a
part of ver. 0.3.
| |
| cmwang@ucla.edu 2006-01-24, 7:02 pm |
| Yes, it would be great if you can send it me. I'll need it. My email
is
Madhusudan Singh wrote:
> cmwang@ucla.edu wrote:
>
>
> The program directly passes commands to gnuplot through kernel IPC.
>
> Btw, the library needs to be modified for use on Mac OSX. I have the
> instructions (from another Mac user) in case you want them. They will be a
> part of ver. 0.3.
|
|
|
|
|