Skip to content
Prev 308686 / 398503 Next

grid(Base): How to avoid "Figure region too small and/or viewport too large" by specifying 'relative' units?

Hi

Apologies for the slow response.

This part of the problem is I think just a bit of a misunderstanding. 
The diagram drawn by grid.show.viewport() is drawn within a *subset* of 
the current page (or viewport), to allow room for labelling, which is 
why your subsequent "real" viewports do not align with the diagram.
If you change your grid.show.layout() call to the following (which 
"removes" the normal margin used by grid.show.layout()) ...

grid.show.layout(gl, vp=viewport(width=1.25, height=1.25))

... then you should find your viewports line up with the diagram properly.

Paul
On 20/10/12 19:10, Marius Hofert wrote: