Versions Compared

Key

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

 

 

 

Column
width350px

Column
width50%

 

 

Panel
titleCheck List
  •  Create a Magics python skeleton that displays a global map using the plot command
  •  Create and use an output object to set-up  name and format of your output
  •  Improve mcoast to taylor the coastlines.
  •  Add a mtext object to add some texts.

 

Step by step

In order to be able to create and use Magics objects, the Magics python package has to be imported.

from Magics.macro import *

Any Magics plots will be triggered using the plot command, the simplest plot example is :

plot(mcoast())

The result will be a geographical map, using the default projection, and the default attributes of coastlines.

Magics will instantiate the default driver.

Section

 

 

 

Column
width200px

 

Image Added

Column
width50%
Code Block
languagepython
titlePython
from Magics.macro import *

plot(mocast())

 

Create a postscript file called ps.ps