diff --git a/src/backends/gr.jl b/src/backends/gr.jl index dafa7e35..697e2471 100644 --- a/src/backends/gr.jl +++ b/src/backends/gr.jl @@ -668,8 +668,8 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas) color = sp[:xaxis][:foreground_color_axis], rotation = sp[:xaxis][:rotation]) for (cv, dv) in zip(xticks...) - # use xor (⊻) to get the right y coords - xi, yi = GR.wctondc(cv, (flip ⊻ mirror) ? ymax : ymin) + # use xor ($) to get the right y coords + xi, yi = GR.wctondc(cv, (flip $ mirror) ? ymax : ymin) # @show cv dv ymin xi yi flip mirror (flip $ mirror) gr_text(xi, yi + (mirror ? 1 : -1) * 2e-3, string(dv)) end @@ -685,8 +685,8 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas) color = sp[:yaxis][:foreground_color_axis], rotation = sp[:yaxis][:rotation]) for (cv, dv) in zip(yticks...) - # use xor (⊻) to get the right y coords - xi, yi = GR.wctondc((flip ⊻ mirror) ? xmax : xmin, cv) + # use xor ($) to get the right y coords + xi, yi = GR.wctondc((flip $ mirror) ? xmax : xmin, cv) # @show cv dv xmin xi yi gr_text(xi + (mirror ? 1 : -1) * 2e-3, yi, string(dv)) end