Merge pull request #1015 from daschw/ds-marker-z

only flip colorbar for marker_z on gr
This commit is contained in:
Daniel Schwabeneder 2017-08-17 23:45:35 +02:00 committed by GitHub
commit be177e0f80

View File

@ -336,6 +336,7 @@ function gr_draw_markers(series::Series, x, y)
GR.setfillintstyle(GR.INTSTYLE_SOLID)
gr_draw_markers(series, x, y, series[:markersize], mz)
if mz != nothing
GR.setscale(0)
gr_colorbar(series[:subplot])
end
end
@ -863,7 +864,6 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas)
if series[:marker_z] != nothing
zmin, zmax = extrema(series[:marker_z])
GR.setspace(zmin, zmax, 0, 90)
GR.setscale(0)
end
gr_draw_markers(series, x, y)
end