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

Axis numbers

77 views
Skip to first unread message

Dieter Britz

unread,
Dec 2, 2009, 8:44:15 AM12/2/09
to
I am doing a multiplot, in which one plot sits above the other. I want
both x-axes to be the same length, but because the different y scales,
they are not. This is because the top y numbers are given as -1, 0, 1
and the lower ones as 0.0, 0.1, 0.2. I know I can force the top numbers to
be given as -1.0, 0.0, 1.0, using format, but what should this format be?
The gnuplot manual mentions "%g", but I can't find the details. If this
is in the manual, under what heading?

The other problem is the x-axis numbers. These go logarithmically from
10^{-4} to 10^4, and at the moment they are given as 1e-04, 0.001, ...
10000. What format do I use to get them in the exponential form, 10^x?

Thirdly, I want the x axis label as italic "T". There is mention of fonts
in the manual, but the only font I find other than the default, is
Helvetica. What font description do I use to get italics{T} ?

Thank you in advance for answers.
--
Dieter Britz (dieterbritz<at>yahoo.com)

Stefan Nowy

unread,
Dec 2, 2009, 8:58:00 AM12/2/09
to
Hi!

> The other problem is the x-axis numbers. These go logarithmically from
> 10^{-4} to 10^4, and at the moment they are given as 1e-04, 0.001, ...
> 10000. What format do I use to get them in the exponential form, 10^x?

see e.g. http://t16web.lanl.gov/Kawano/gnuplot/tics-e.html:

set format x "10^{%L}"


> Thirdly, I want the x axis label as italic "T". There is mention of fonts
> in the manual, but the only font I find other than the default, is
> Helvetica. What font description do I use to get italics{T} ?

see e.g. http://t16web.lanl.gov/Kawano/gnuplot/plot2-e.html

gnuplot> set terminal postscript enhanced "Helvetica" 16
gnuplot> set title "Damping Function" font "Times-Roman,40"
gnuplot> set xlabel "X-AXIS" font "Helvetica,20"
gnuplot> set ylabel "Y-AXIS" font "Times-Italic,32"
gnuplot> plot exp(-x)

Nothing you could'nt have found in 2 seconds using google. ;-)

HTH
Stefan

sfeam

unread,
Dec 2, 2009, 11:25:14 AM12/2/09
to
Dieter Britz wrote:

> I am doing a multiplot, in which one plot sits above the other. I want
> both x-axes to be the same length, but because the different y scales,
> they are not. This is because the top y numbers are given as -1, 0, 1
> and the lower ones as 0.0, 0.1, 0.2.

Leaving aside the issue of format statements, I am guessing that the
more important part of your question is how to make the axes line up
exactly. Please see the demo plot

http://gnuplot.sourceforge.net/demo_4.2/margins.html

Ethan


0 new messages