draw colorbar in the end
This commit is contained in:
parent
b0ffe03c99
commit
94c0957e11
@ -1128,13 +1128,6 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas)
|
|||||||
GR.drawimage(xmin, xmax, ymax, ymin, w, h, rgba)
|
GR.drawimage(xmin, xmax, ymax, ymin, w, h, rgba)
|
||||||
end
|
end
|
||||||
|
|
||||||
# draw the colorbar
|
|
||||||
if cmap && st != :contour # special colorbar with steps is drawn for contours
|
|
||||||
gr_set_line(1, :solid, yaxis[:foreground_color_axis])
|
|
||||||
GR.settransparency(1)
|
|
||||||
gr_colorbar(sp, clims)
|
|
||||||
end
|
|
||||||
|
|
||||||
# this is all we need to add the series_annotations text
|
# this is all we need to add the series_annotations text
|
||||||
anns = series[:series_annotations]
|
anns = series[:series_annotations]
|
||||||
for (xi,yi,str,fnt) in EachAnn(anns, x, y)
|
for (xi,yi,str,fnt) in EachAnn(anns, x, y)
|
||||||
@ -1142,6 +1135,13 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas)
|
|||||||
gr_text(GR.wctondc(xi, yi)..., str)
|
gr_text(GR.wctondc(xi, yi)..., str)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# draw the colorbar
|
||||||
|
if cmap && st != :contour # special colorbar with steps is drawn for contours
|
||||||
|
gr_set_line(1, :solid, yaxis[:foreground_color_axis])
|
||||||
|
GR.settransparency(1)
|
||||||
|
gr_colorbar(sp, clims)
|
||||||
|
end
|
||||||
|
|
||||||
GR.restorestate()
|
GR.restorestate()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user