Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This function is normally used within loops to generate output of each iteration on a separate page (or file). To use newpage() you need first to define a plot_superpage() as shown in the example below.

Code Block
languagepy
titleMultiple pages
...
 
dw = plot_superpage(
    pages : [plot_page(),plot_page()]
)

plot(dw[1], ...)
newpage(dw)
 
...
plot(dw[2], ...)

Here we create two default sized pages with plot_page(), which attach to the super page. Than we assign each plot command to a page.

Task

Take the macro from the previous task and add a page where you visualise the same field but over Europe only.

...