Guide.yticks

Formats the tick marks and labels for the y-axis

Arguments

Examples

ticks = [0.2, 0.4, 0.6]
plot(x=rand(10), y=rand(10), Geom.line, Guide.yticks(ticks=ticks))
x 0.0 0.5 1.0 0.2 0.4 0.6 y
plot(x=rand(10), y=rand(10), Geom.line, Guide.yticks(ticks=ticks, label=false))
x 0.0 0.5 1.0 y
plot(x=rand(10), y=rand(10), Geom.line, Guide.yticks(ticks=ticks, orientation=:vertical))
x 0.0 0.5 1.0 0.2 0.4 0.6 0.2 0.4 0.6 y

Range types can also be used

plot(x=rand(1:10, 10), y=rand(1:10, 10), Geom.line, Guide.yticks(ticks=[1:9;]))
x 0.0 2.5 5.0 7.5 10.0 1 2 3 4 5 6 7 8 9 y
Note

The ; in ticks=[1:9;] is required to flatten the 1:9 range type into [1, 2, 3, ...]. Alternatively, collect can be used in the following manner ticks=collect(1:9).