diff --git a/src/arg_desc.jl b/src/arg_desc.jl index 53c8b51f..f0df3e92 100644 --- a/src/arg_desc.jl +++ b/src/arg_desc.jl @@ -94,7 +94,7 @@ const _arg_desc = KW( :subplot_index => "Integer. Internal (not set by user). Specifies the index of this subplot in the Plot's `plt.subplot` list.", :colorbar_title => "String. Title of colorbar.", :framestyle => "Symbol. Style of the axes frame. Choose from $(_allFramestyles)", -:camera => "NTuple{2, Int(GR)/Real(Other)}. Sets the view angle (azimuthal, elevation) for 3D plots", +:camera => "NTuple{2, Real}. Sets the view angle (azimuthal, elevation) for 3D plots", # axis args :guide => "String. Axis guide (label).", diff --git a/src/backends/gr.jl b/src/backends/gr.jl index 21d2c5db..01b9d6e6 100644 --- a/src/backends/gr.jl +++ b/src/backends/gr.jl @@ -751,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, sp[:camera]...) + GR.setspace(zmin, zmax, map(Int,map(round,sp[:camera]))...) xtick = GR.tick(xmin, xmax) / 2 ytick = GR.tick(ymin, ymax) / 2 ztick = GR.tick(zmin, zmax) / 2