3 g
= graph
.graphxy(width
=8, key
=graph
.key
.key())
7 d
= [graph
.data
.join([graph
.data
.function("y_a(x_a)=A*sin(2*pi*x_a)", context
=dict(A
=A
)),
8 graph
.data
.file("join.dat", x_b
=1, y_b
=i
+2)],
10 for i
, A
in enumerate(As
)]
12 attrs
= [color
.gradient
.RedBlue
]
15 [graph
.style
.pos(usenames
=dict(x
="x_a", y
="y_a")),
16 graph
.style
.line(attrs
),
17 graph
.style
.pos(usenames
=dict(x
="x_b", y
="y_b")),
18 graph
.style
.symbol(graph
.style
.symbol
.changesquare
, symbolattrs
=attrs
, size
=0.1)])