From 65a28e76e548e16938b3eb9f2602afb6b21cef6d Mon Sep 17 00:00:00 2001 From: Andrew Palugniok Date: Fri, 6 Oct 2017 20:06:39 +0100 Subject: [PATCH] Implemented camera attribute for GR. --- src/backends/gr.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backends/gr.jl b/src/backends/gr.jl index 0d1d5a21..21d2c5db 100644 --- a/src/backends/gr.jl +++ b/src/backends/gr.jl @@ -34,6 +34,7 @@ const _gr_attr = merge_with_base_supported([ :arrow, :framestyle, :tick_direction, + :camera, ]) const _gr_seriestype = [ :path, :scatter, @@ -750,7 +751,7 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas) isfinite(clims[1]) && (zmin = clims[1]) isfinite(clims[2]) && (zmax = clims[2]) end - GR.setspace(zmin, zmax, 35, 60) + GR.setspace(zmin, zmax, sp[:camera]...) xtick = GR.tick(xmin, xmax) / 2 ytick = GR.tick(ymin, ymax) / 2 ztick = GR.tick(zmin, zmax) / 2