Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 686 Bytes

guide_ylabel.md

File metadata and controls

36 lines (27 loc) · 686 Bytes

title: ylabel author: Darwin Darakananda part: Guide order: 3001 ...

Sets the y-axis label for the plot.

Arguments

  • label: Y-axis label
  • orientation (optional): :horizontal, :vertical, or :auto (default)

label is not a keyword parameter, it must be supplied as the first argument of Guide.ylabel. Setting it to nothing will suppress the default label.

Examples

using Gadfly

Gadfly.set_default_plot_size(14cm, 8cm)
plot(cos, 0, 2π, Guide.ylabel("cos(x)"))
plot(cos, 0, 2π, Guide.ylabel("cos(x)", orientation=:horizontal))
plot(cos, 0, 2π, Guide.ylabel(nothing))