Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

change default linewidth and fontsize ?

632 views
Skip to first unread message

Andreas Pohl

unread,
Apr 20, 2002, 5:24:11 AM4/20/02
to
Dear gnuploters,

I would like to change some defaults of the gnuplot-settings (and am not
able to do so). Therefore I'd like to ask for some help:

- The changes should be valid in x11 and in postscript terminal !
(WYSIWYG)

- Can I change the default linewidth ? What I want is the following:
When I enter
p sin(x)
Gnuplot should plot sin(x) with a linewidth of 2 (either in x11 or
in postscript)

-Can I change the default fontsize. The fontsize should be valid for
x11 and postscript at the same time.


Thanks for any advices, links, references etc ...

Andreas

Hans-Bernhard Broeker

unread,
Apr 20, 2002, 9:16:27 AM4/20/02
to
Andreas Pohl <andrea...@theorie2.physik.uni-erlangen.de> wrote:
> - The changes should be valid in x11 and in postscript terminal !
> (WYSIWYG)

This is what makes both individual tasks hard, if not impossible.

> - Can I change the default linewidth ? What I want is the following:
> When I enter
> p sin(x)
> Gnuplot should plot sin(x) with a linewidth of 2 (either in x11 or
> in postscript)

There is no global linewidth default in the gnuplot core, and of X11
and PostScript, only the former offers a terminal-specific way of
setting one (by overriding all the widths in the X11 resources). So
this can't be done.

> -Can I change the default fontsize. The fontsize should be valid for
> x11 and postscript at the same time.

This is possible, but only by separate commands for X11 and
PostScript. No single command will alter two separate terminal
drivers at the same time. For X11, you do this via X11 tookit options
(or X resources, equivalently). For PostScript, you can specify the
fontsize in the 'set term postscript' line.
--
Hans-Bernhard Broeker (bro...@physik.rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.

News

unread,
Apr 23, 2002, 10:17:55 PM4/23/02
to
I did this in my .gnu file

plot "a_file" using 1:2 title "data1" with lines, "a_file" using 1:3 title
"data2" with lines

I can see the titles "data1" and "data2" on my gnuplot. But when I did
output to postscript file, they were gone.

Can anyone tell me what went worng?

thanks,
JW


Hans-Bernhard Broeker

unread,
Apr 23, 2002, 10:47:26 PM4/23/02
to

Not from what information you gave. You'll have to detail how, exactly,
you created that output to postscript file, for starters. Something like

set terminal postscript color solid
set output 'myplot.ps'
load 'thatfile.gnu'
set output
set terminal win # ... or whatever it usually is...

should always work. If it doesn't, mail the generated postscript,
your 'thatfile.gnu', and both datafiles to bug-g...@dartmouth.edu
and we'll see what went wrong. Also tell the platform you're running
on, and what version of gnuplot.

0 new messages