mirror of https://github.com/mpastell/Weave.jl
12 lines
306 B
Plaintext
12 lines
306 B
Plaintext
|
|
# Gadfly
|
|
|
|
```{julia;fig_ext=".svg";dpi=300}
|
|
using Gadfly
|
|
x = collect(range(0, stop=2π, length=200))
|
|
plot(
|
|
layer(x=x, y = sin.(x), Geom.line),
|
|
layer(x=x, y = cos.(x), Geom.line, Theme(default_color=colorant"red")),
|
|
Guide.manual_color_key("Legend", ["sin", "cos"], ["deepskyblue", "red"])
|
|
)
|
|
``` |