help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: landscape plotting


From: Andreas Weber
Subject: Re: landscape plotting
Date: Thu, 24 Jul 2014 14:59:40 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0

On 24.07.2014 13:29, Rudolf Widmer-Schnidrig wrote:
> I run octave 3.6.4 and would like that my plot fills out an entire
> landscape A4 page.

Octave 3.6.4 is quite old and I hope this work there. I guess you are
using the gnuplot toolkit, right? Then try this:

# create a plot
subplot(2, 2, 1)
plot(sin(0:0.1:10))
subplot(2, 2, 2)
plot(cos(0:0.1:10))
subplot(2, 2, 3)
plot(sin(0:0.1:10).**2)
subplot(2, 2, 4)
plot(exp(0:0.1:3))

set (gcf, "paperorientation", "landscape")
# Calculate the papersize in inches for A4
papersize = [29.7, 21]/2.54;
set (gcf, "papersize", papersize)
set (gcf, "paperposition", [0.25 0.25, papersize-0.5])

print -dpdf out.pdf

This keeps a 0.25 inches border around the page

Gruß ins Kinzigtal...

-- 
Mit freundlichen Grüßen

Dipl.-Ing.(FH) Andreas Weber
Fakultät Elektrotechnik und Informationstechnik

Hochschule Offenburg - University of Applied Sciences Offenburg
Badstraße 24
77652 Offenburg
Telefon +49 781 205-386



reply via email to

[Prev in Thread] Current Thread [Next in Thread]