...
Section |
---|
Column |
---|
| Code Block |
---|
theme | Confluence |
---|
language | python |
---|
title | Python - Title |
---|
collapse | true |
---|
| from Magics.macro import *
#settings of the png output
output = output(
output_formats = ['png'],
output_name = "coast",
output_name_first_page_number = "off"
)
##settings of the coastlines attributes
coast = mcoast(
map_coastline_land_shade = "on",
map_coastline_land_shade_colour = "cream",
map_grid_line_style = "dash",
map_grid_colour = "brown",
map_label_colour = "brown",
map_coastline_colour = "brown"
)
##settings of the text (notice the Html formatting)
title = mtext(
text_lines = ["Hello World!", " <b>This is my first plot</b> !"],
text_font_size = "0.7",
text_colour = "charcoal"
)
#The plot command will now use the coast and title objects
plot(output, coast, title) |
|
Column |
---|
| |
|
Go to next Step...
Go to the Main Magics Tutorial...