Skip to content

Commit

Permalink
Merge pull request #1124 from bjarthur/bja/examples
Browse files Browse the repository at this point in the history
fix a couple examples in the docs
  • Loading branch information
bjarthur authored Apr 2, 2018
2 parents 78208d2 + 5fdac8e commit e36d55c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/src/lib/guides/guide_annotation.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ Gadfly.set_default_plot_size(14cm, 8cm)
```@example 1
plot(sin, 0, 2pi,
Guide.annotation(
compose(context(), circle([pi/2, 3*pi/2], [1.0, -1.0], [2mm]), fill(nothing),
compose(context(), Shape.circle([pi/2, 3*pi/2], [1.0, -1.0], [2mm]), fill(nothing),
stroke("orange"))))
```
4 changes: 2 additions & 2 deletions docs/src/lib/guides/guide_colorkey.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ Gadfly.set_default_plot_size(16cm, 8cm)

```@example 1
Dsleep = dataset("ggplot2", "msleep")[[:Vore,:BrainWt,:BodyWt,:SleepTotal]]
completecases!(Dsleep)
DataFrames.complete_cases!(Dsleep)
Dsleep[:SleepTime] = Dsleep[:SleepTotal] .> 8
plot(Dsleep, x=:BodyWt, y=:BrainWt, Geom.point, color=:SleepTime,
Guide.colorkey(title="Sleep \n(hours/day)\n ", labels=[">8","≤8"]),
Guide.colorkey(title="Sleep", labels=[">8","≤8"]),
Scale.x_log10, Scale.y_log10 )
```
Expand Down

0 comments on commit e36d55c

Please sign in to comment.