Skip to content

Commit

Permalink
Use RGBA in geometry example
Browse files Browse the repository at this point in the history
  • Loading branch information
CiaranOMara committed Nov 23, 2019
1 parent 442bb5b commit 152aa9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/gallery/geometries.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ plot(De, x=:Date, y=:Unemploy, Geom.line,
```

```@example
using Gadfly
using Colors, Gadfly
p1 = plot(x=1:9, y=1:9, Geom.blank,
layer(xmin=[1.0, 5.0, 7.0], xmax=[2.0, 6.5, 8.0] , Geom.vband, Theme(default_color="green")));
layer(xmin=[1.0, 5.0, 7.0], xmax=[2.0, 6.5, 8.0], Geom.vband, Theme(default_color=RGBA(0.5,0.5,0.5,0.5))));
p2 = plot(x=1:9, y=1:9, Geom.blank,
layer(ymin=[2.5], ymax=[7.5], Geom.hband, Theme(default_color="red")));
layer(ymin=[2.5], ymax=[7.5], Geom.hband, Theme(default_color=RGBA(0.5,0.5,0.5,0.5))));
hstack(p1, p2)
```
Expand Down

0 comments on commit 152aa9a

Please sign in to comment.