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

how to compress the z-axis?

450 views
Skip to first unread message

Charman

unread,
Aug 1, 2009, 2:07:25 PM8/1/09
to
Dear NewsGroup,
please help me if possible with the following:

I want to compress the z-axis in a 3-d plotting (splot). I know the
command "set size ratio" for 2-d plots. But unfortunately it doesn't
work for 3-d plots, so it seems. I would be glad if someone could show
me a possibility like that for 3-d plots as well.

I would be thankful for every kind of help!

Kind regards

Zoltan

unread,
Aug 1, 2009, 2:43:28 PM8/1/09
to

I don't quite know what you exactly need. In 4.2, the set size ratio
works, although it might not give the ratio that you expect. You could
try
set size 1, 0.5, instead, which will re-scale your plot in the
vertical direction by a factor of 2. You might also want to issue set
ticslevel 0, in order to remove the space between the bottom of the
graph and the minimum of the zrange.
I hope this helps!
Cheers,
Zoltán

Charman

unread,
Aug 1, 2009, 3:26:59 PM8/1/09
to

Hello,

yes, the size ratio works, but only for the x and y axis - or do I
have an old version of gnuplot? Where can I look up my version number
then?
'set size 1, 0.5' makes the whole picture smaller, whereas I want to
change the ratio. I want the ratio between x, y and z axis to be
1:1:2, such that my graphic is been half as high as before, but as
long and wide as before (and pictures the same are as before).
'ticslevel' removes the space, yes, and it looks better. But it's not
what I want.

Is there any other solution?

Zoltan

unread,
Aug 1, 2009, 5:47:57 PM8/1/09
to

You should be able to see the version number when you open gnuplot
(under linux), or in the help menu (under windows). You can also print
it by issuing the command

print GPVAL_VERSION

> 'set size 1, 0.5' makes the whole picture smaller, whereas I want to
> change the ratio. I want the ratio between x, y and z axis to be
> 1:1:2, such that my graphic is been half as high as before, but as
> long and wide as before (and pictures the same are as before).

On gnuplot 4.2, set size 1,0.5 does exactly what you want. I suspect
that you have an older version then.
I am sorry I couldn't be of more help.
Cheers,
Zoltán

Charman

unread,
Aug 1, 2009, 6:57:14 PM8/1/09
to


Thank you very much!

It didn't work like you said, but after restarting gnuplot again it
worked. After that it did exacly what I looked for. Thank you very
much for your help and your patience!

Kind regards

0 new messages