title: yticks author: Darwin Darakananda part: Guide order: 3003 ...
Formats the tick marks and labels for the y-axis
ticks
: Array of tick locations on the y-axislabel
: Determines if the ticks are labeled, eithertrue
(default) orfalse
orientation
: Label orientation (:horizontal, :vertical, :auto
). Defaults to:auto
using Gadfly
Gadfly.set_default_plot_size(14cm, 8cm)
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))