Versions Compared

Key

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

...

Section
Column
width50%

 

 

Code Block
themeConfluence
languagepython
titlePython - Basic
collapsetrue
from Magics.macro import *

plot(mcoast())

 

Create a postscript file called ps.ps, mcoast() create a default coastlines object.

Column
width200px

 

...

The object outputallows the selection definition of the output format, and the setting settings of the output filename file name .

Have a look at the  PNG output documentation  to see which parameters are available to set-up a PNG output.

...

Code Block
themeConfluence
languagepython
titlePython - Output
collapsetrue
from Magics.macro import *

#settings of the png output 
output = output(
			output_formats = ['png'],
  			output_name = "magics",
    		output_name_first_page_number = "off"
    )

#The plot commad will create a png output called magics.png
plot(output, mcoast())