gr fix zcolor to marker_z

This commit is contained in:
Thomas Breloff 2016-04-27 12:10:33 -04:00
parent 7ce7f8bfce
commit d6d7fc1edd
2 changed files with 3 additions and 3 deletions

View File

@ -387,8 +387,8 @@ function gr_display(plt::Plot{GRBackend}, clear=true, update=true,
c = p[:markercolor] c = p[:markercolor]
GR.setcolormap(-GR.COLORMAP_GLOWING) GR.setcolormap(-GR.COLORMAP_GLOWING)
for i = 1:length(p[:x]) for i = 1:length(p[:x])
if isa(c, ColorGradient) && p[:zcolor] != nothing if isa(c, ColorGradient) && p[:marker_z] != nothing
ci = round(Int, 1000 + p[:zcolor][i] * 255) ci = round(Int, 1000 + p[:marker_z][i] * 255)
GR.setmarkercolorind(ci) GR.setmarkercolorind(ci)
end end
GR.setmarkersize(d[:markersize][i] / 4.0) GR.setmarkersize(d[:markersize][i] / 4.0)

View File

@ -30,7 +30,7 @@ facts("GR") do
@fact gr() --> Plots.GRBackend() @fact gr() --> Plots.GRBackend()
@fact backend() --> Plots.GRBackend() @fact backend() --> Plots.GRBackend()
@linux_only image_comparison_facts(:gr, skip=[27], eps=img_eps) @linux_only image_comparison_facts(:gr, skip=[13,27], eps=img_eps)
end end
facts("Plotly") do facts("Plotly") do