Fixed axes limits problem

This commit is contained in:
Josef Heinen 2016-06-01 08:16:44 -07:00
parent 76c84c7615
commit 8eec77b784

View File

@ -268,16 +268,16 @@ end
# using the axis extrema and limit overrides, return the min/max value for this axis # using the axis extrema and limit overrides, return the min/max value for this axis
gr_x_axislims(sp::Subplot) = axis_limits(sp.attr[:xaxis], true) gr_x_axislims(sp::Subplot) = axis_limits(sp.attr[:xaxis], false)
gr_y_axislims(sp::Subplot) = axis_limits(sp.attr[:yaxis], true) gr_y_axislims(sp::Subplot) = axis_limits(sp.attr[:yaxis], false)
gr_z_axislims(sp::Subplot) = axis_limits(sp.attr[:zaxis], true) gr_z_axislims(sp::Subplot) = axis_limits(sp.attr[:zaxis], false)
gr_xy_axislims(sp::Subplot) = gr_x_axislims(sp)..., gr_y_axislims(sp)... gr_xy_axislims(sp::Subplot) = gr_x_axislims(sp)..., gr_y_axislims(sp)...
function gr_lims(axis::Axis, adjust::Bool, expand = nothing) function gr_lims(axis::Axis, adjust::Bool, expand = nothing)
if expand != nothing if expand != nothing
expand_extrema!(axis, expand) expand_extrema!(axis, expand)
end end
lims = axis_limits(axis, true) lims = axis_limits(axis, false)
if adjust if adjust
GR.adjustrange(lims...) GR.adjustrange(lims...)
else else