Guide.yticks
Formats the tick marks and labels for the y-axis
Arguments
ticks: Array of tick locations on the y-axis,:autoto automatically select ticks, ornothingto supress y-axis ticks.label: Determines if the ticks are labeled, eithertrue(default) orfalseorientation: Label orientation (:horizontal, :vertical, :auto). Defaults to:auto
Examples
ticks = [0.2, 0.4, 0.6]
plot(x=rand(10), y=rand(10), Geom.line, Guide.yticks(ticks=ticks))
plot(x=rand(10), y=rand(10), Geom.line, Guide.yticks(ticks=ticks, label=false))
plot(x=rand(10), y=rand(10), Geom.line, Guide.yticks(ticks=ticks, orientation=:vertical))
Range types can also be used
plot(x=rand(1:10, 10), y=rand(1:10, 10), Geom.line, Guide.yticks(ticks=[1:9;]))
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).