You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 19 Next »

 

 

 

 

 

Check 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.

 

 

Python
from Magics.macro import *

plot(mocast())

 

Create a postscript file called p

 

 

 

 

 



 

 

 

 

 

 

 

 

  • No labels