...
| Section |
|---|
| Column |
|---|
| | Code Block |
|---|
| theme | Confluence |
|---|
| language | python |
|---|
| title | Python |
|---|
| from Magics.macro import *
plot(mocastmcoast()) |
Create a postscript file called ps.ps, mcoast() create a default coastlines object. |
| Column |
|---|
| 
|
|
Setting the output
The object outputallows the selection of the output format, and the setting of the output filename .
Have a look at the PNG output documentation to see which parameters are available to set-up a PNG output.
To create a PNG output Magics, you have to create an output object and to insert at the first position in the plot command
...
...
...
...
...
|
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()) |