pyplot lims fix

This commit is contained in:
Thomas Breloff 2016-05-20 08:15:27 -04:00
parent 1b901673fc
commit 89feb68b7c

View File

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