From 89feb68b7c4c80f188cca8af6218b19b5acc3ced Mon Sep 17 00:00:00 2001 From: Thomas Breloff Date: Fri, 20 May 2016 08:15:27 -0400 Subject: [PATCH] pyplot lims fix --- src/backends/pyplot.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index 4d695da9..597dba71 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -1066,10 +1066,10 @@ function addPyPlotLims(ax, lims, letter) setf = ax[symbol("set_", letter, "lim")] l1, l2 = lims if isfinite(l1) - letter == "x" ? setf(left = l1) : setf(bottom = l1) + letter == :x ? setf(left = l1) : setf(bottom = l1) end if isfinite(l2) - letter == "x" ? setf(right = l2) : setf(top = l2) + letter == :x ? setf(right = l2) : setf(top = l2) end else error("Invalid input for $letter: ", lims)