Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 786 Bytes

guide_yticks.md

File metadata and controls

37 lines (28 loc) · 786 Bytes

title: yticks author: Darwin Darakananda part: Guide order: 3003 ...

Formats the tick marks and labels for the y-axis

Arguments

  • ticks: Array of tick locations on the y-axis
  • label: Determines if the ticks are labeled, either true (default) or false
  • orientation: Label orientation (:horizontal, :vertical, :auto). Defaults to :auto

Examples

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))