...
The geographical area we want to work with today is defined by its lower-left corner [20oN, 110oW] and its upper-right corner [70oN, 30oW].
Have a look at the subpage documentation to learn how to setup a projection .
...
The stating point is [50oN, 90oEW], the end point is [30oN, 60oEW] : it can be passed to Magics using the minput object, documented in Input Data Page.
...
Section |
---|
Column |
---|
| Info |
---|
|
Useful input parameters |
---|
input_x_values | input_y_values |
Useful Graph parameters |
---|
graph_line | graph_line_colour |
|
Code Block |
---|
theme | Confluence |
---|
language | python |
---|
title | Python - Adding a line |
---|
collapse | true |
---|
| from Magics.macro import *
#setting the output
output = output(
output_formats = ['png'],
output_name = "map_step7",
output_name_first_page_number = "off"
)
#---------------------------------------
# definition of the previous layers
# ...
# ...
#---------------------------------------
#definition of the Xsection Line
xsection = minput(
input_x_values = [-7490., -60.],
input_y_values = [4150., 30.]
)
#definition of the graph
line = mgraph(
graph_line_colour = "black",
graph_line_thickness = 4
)
plot(output, area, coast, precip, shading, msl, contour, new_york, point, xsection, line, legend) |
|
Column |
---|
| ![](/download/attachments/24317025/map_step7.png?version=1&modificationDate=1362591313300&api=v2&effects=border-simple,blur-border) |
|
...