<< prev file | next file >>    view single page | view frames    summary: fields | routine    details: routine

ToBeReviewed/POSTSCRIPT/

calibre.pro

From a rapport of aspect and values (in line of character) of different margins, it calculate POSFENETRE and POSBAR which serve to place the drawing and the color bar thanks to !p.position on a leaf or a screen output whose the window has the same proportion.

topcalibre Graphics

calibre, rapportyx, marge, margebar, smalldraw, posfenetre, posbar, REMPLI=REMPLI, YXASPECT=YXASPECT, PORTRAIT=PORTRAIT, LANDSCAPE=LANDSCAPE, _extra=_extra

Parameters

rapportyx        in required

Scale rapport between the length of the y axis and the x one. For example, for an xy map: RAPPORTYX=(lat2-lat1)/(lon2-lon1)

marge        in required type: vector

Vector made of 4 elements containing the size of the left, right, up and bottom margin having to surround the graph. All is measured in lines of characters.

margebar        in required type: vector

Vector made of 4 elements containing the size of the left, right and bottom margin and -BEWARE- the last element is this time the position of the right up corner, having to surround the color bar. All is measured in lines of characters.

smalldraw        in required type: vector

2 possibilities: It is vector made of 4 elements giving (in portrait or landscape) the position of the frame in which the drawing must go in. This position is given by coordinates of the 2 corners of the frame: in the left bottom and the right up. It is always (for a postscript or a screen output) express in cm, the origin being the left bottom corner. It is a vector made of 3 elements giving the number of column to be done in the drawing, the number of line and the number of the case the number have to occupy (see matlab). For example, to do 6 drawing in 3 columns and 2 lines and occupy the 4th case, small=[2,3,4]

posfenetre        type: vector

It is a vector made of 4 elements containing the position of the frame containing captions + the graph in normalized coordinates. Comment: to position the drawing, we have to do !p.position=POSFENETRE after the call of calibre.

posbar        type: vector

See POSFENTRE but for the color bar. Same comment to position the color bar, !p.position=POSBAR

Keywords

REMPLI       

Force the drawing to occupy the biggest possible place defined by SMALLDRAW without respect the rapport y on x.

YXASPECT       

Force the rapport y on x to take the value RAPPORTYX*YXASPECT. This keyword can be used in 2 cases: 1) YXASPECT=1 : force RAPPORTYX to be respected otherwise, Calibre take the initiative to change it a little in the case of the aspect rapport of SMALL is too different of the one of SMALLDRAW. 2) YXASPECT=n : multiply by n the aspect rapport given by default. For example in plt, RAPPORTYX is calculated to the reference be orthonormal, to have a reference where the y axis is 2 time bigger than the x one, YXASPECT=2.

PORTRAIT       

Force the page or the window to be in standing position.

LANDSCAPE       

Force the page or the window on the screen to be in lengthened position.

_extra       

Used to pass your keywords

Version history

Version

$Id: calibre.pro 157 2006-08-21 09:01:50Z navarro $

History

Sebastien Masson (smasson@lodyc.jussieu.fr) 11/12/98

Other attributes

Uses routines

common.pro

Statistics

McCabe cyclic 35
McCabe essential 1
McCabe modular design 1
Produced by IDLdoc 2.0.