From 96bd0bb46c4e8908caef3b09f2788484dd2f7b62 Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Fri, 14 Jul 2017 10:01:52 -0500 Subject: [PATCH] Fix some errors/depwarns --- src/backends/glvisualize.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/glvisualize.jl b/src/backends/glvisualize.jl index 8e61860d..3484131b 100644 --- a/src/backends/glvisualize.jl +++ b/src/backends/glvisualize.jl @@ -788,7 +788,7 @@ function gl_bar(d, kw_args) fillto = 0 end # create the bar shapes by adding x/y segments - positions, scales = Array(Point2f0, ny), Array(Vec2f0, ny) + positions, scales = Array{Point2f0}(ny), Array{Vec2f0}(ny) m = Reactive.value(kw_args[:model]) sx, sy = m[1,1], m[2,2] for i=1:ny @@ -939,7 +939,7 @@ function scale_for_annotations!(series::Series, scaletype::Symbol = :pixels) # we use baseshape to overwrite the markershape attribute # with a list of custom shapes for each msw, msh = anns.scalefactor - offsets = Array(Vec2f0, length(anns.strs)) + offsets = Array{Vec2f0}(length(anns.strs)) series[:markersize] = map(1:length(anns.strs)) do i str = _cycle(anns.strs, i) # get the width and height of the string (in mm)