diff --git a/src/axes.jl b/src/axes.jl index 4baf3279..ec471b30 100644 --- a/src/axes.jl +++ b/src/axes.jl @@ -201,7 +201,8 @@ end # push the limits out slightly function widen(lmin, lmax) span = lmax - lmin - eps = max(1e-16, min(1e-2span, 1e-10)) + # eps = max(1e-16, min(1e-2span, 1e-10)) + eps = max(1e-16, 0.03span) lmin-eps, lmax+eps end diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index 9362fabf..258425ff 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -472,7 +472,8 @@ function _series_added(plt::Plot{PyPlotBackend}, series::Series) ax[:annotate]("", xytext = (0.001xyprev[1] + 0.999xy[1], 0.001xyprev[2] + 0.999xy[2]), xy = xy, - arrowprops = arrowprops + arrowprops = arrowprops, + zorder = 999 ) end end @@ -1046,7 +1047,7 @@ end function createPyPlotAnnotationObject(sp::Subplot{PyPlotBackend}, x, y, val) ax = sp.o - ax[:annotate](val, xy = (x,y)) + ax[:annotate](val, xy = (x,y), zorder = 999) end @@ -1059,7 +1060,8 @@ function createPyPlotAnnotationObject(sp::Subplot{PyPlotBackend}, x, y, val::Plo horizontalalignment = val.font.halign == :hcenter ? "center" : string(val.font.halign), verticalalignment = val.font.valign == :vcenter ? "center" : string(val.font.valign), rotation = val.font.rotation * 180 / π, - size = val.font.pointsize + size = val.font.pointsize, + zorder = 999 ) end