Scale.y_continuous

Map numerical data to y positions in cartesian coordinates.

Arguments

Note

minvalue and maxvalue here are soft bounds, Gadfly may choose to ignore them when constructing an optimal plot. Use Coord.cartesian to enforce a hard bound.

Variations

A number of transformed continuous scales are provided.

Aesthetics Acted On

y, ymin, ymax, yintercept

Examples

# Transform both dimensions
plot(x=rand(10), y=rand(10), Scale.y_log)
x 0.0 0.2 0.4 0.6 0.8 1.0 e-5 e-4 e-3 e-2 e-1 e0 y
# Force the viewport
plot(x=rand(10), y=rand(10), Scale.y_continuous(minvalue=-10, maxvalue=10))
x 0.0 0.2 0.4 0.6 0.8 1.0 -10 -5 0 5 10 y
# Use scientific notation
plot(x=rand(10), y=rand(10), Scale.y_continuous(format=:scientific))
x 0.0 0.2 0.4 0.6 0.8 0 2.0×10⁻¹ 4.0×10⁻¹ 6.0×10⁻¹ 8.0×10⁻¹ y
# Use manual formatting
plot(x=rand(10), y=rand(10), Scale.y_continuous(labels=y -> @sprintf("%0.4f", y)))
x 0.0 0.2 0.4 0.6 0.8 1.0 0.0000 0.2000 0.4000 0.6000 0.8000 y