@@ -21,20 +21,20 @@ class can control which axes should be plotted and optionally show annotations,
21
21
import numpy as np
22
22
import pygmt
23
23
24
- # Generate two sample Y data from one common X data
24
+ # Generate two sample Y- data from one common X- data
25
25
x = np .linspace (1.0 , 9.0 , num = 9 )
26
26
y1 = x
27
27
y2 = x ** 2 + 110
28
28
29
29
fig = pygmt .Figure ()
30
30
31
- # Plot the common X axes
31
+ # Plot the common X- axes
32
32
# The bottom axis (S) is plotted with annotations and tick marks
33
33
# The top axis (t) is plotted without annotations and tick marks
34
34
# The left and right axes are not drawn
35
35
fig .basemap (region = [0 , 10 , 0 , 10 ], projection = "X15c/15c" , frame = ["St" , "xaf+lx" ])
36
36
37
- # Plot the Y axis for y1 data
37
+ # Plot the Y- axis for y1- data
38
38
# The left axis (W) is plotted with blue annotations, ticks, and label
39
39
with pygmt .config (
40
40
MAP_FRAME_PEN = "blue" ,
@@ -44,12 +44,12 @@ class can control which axes should be plotted and optionally show annotations,
44
44
):
45
45
fig .basemap (frame = ["W" , "yaf+ly1" ])
46
46
47
- # Plot the line for y1 data
47
+ # Plot the line for y1- data
48
48
fig .plot (x = x , y = y1 , pen = "1p,blue" )
49
- # Plot points for y1 data
49
+ # Plot points for y1- data
50
50
fig .plot (x = x , y = y1 , style = "c0.2c" , fill = "blue" , label = "y1" )
51
51
52
- # Plot the Y axis for y2 data
52
+ # Plot the Y- axis for y2- data
53
53
# The right axis (E) is plotted with red annotations, ticks, and label
54
54
with pygmt .config (
55
55
MAP_FRAME_PEN = "red" ,
@@ -58,9 +58,9 @@ class can control which axes should be plotted and optionally show annotations,
58
58
FONT_LABEL = "red" ,
59
59
):
60
60
fig .basemap (region = [0 , 10 , 100 , 200 ], frame = ["E" , "yaf+ly2" ])
61
- # Plot the line for y2 data
61
+ # Plot the line for y2- data
62
62
fig .plot (x = x , y = y2 , pen = "1p,red" )
63
- # Plot points for y2 data
63
+ # Plot points for y2- data
64
64
fig .plot (x = x , y = y2 , style = "s0.28c" , fill = "red" , label = "y2" )
65
65
66
66
# Create a legend in the Top Left (TL) corner of the plot with an
0 commit comments