From 80c01e74c67a53e46ce3df36c14b82c707c3f9ee Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Tue, 5 Mar 2019 10:34:05 +0100 Subject: [PATCH] plotly: fix yflip for `ticks = :none` --- src/backends/plotly.jl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/backends/plotly.jl b/src/backends/plotly.jl index 569e05e3..8beac943 100644 --- a/src/backends/plotly.jl +++ b/src/backends/plotly.jl @@ -186,11 +186,6 @@ function plotly_axis(plt::Plot, axis::Axis, sp::Subplot) ax[:tickcolor] = framestyle in (:zerolines, :grid) || !axis[:showaxis] ? rgba_string(invisible()) : rgb_string(axis[:foreground_color_axis]) ax[:linecolor] = rgba_string(axis[:foreground_color_axis]) - # flip - if axis[:flip] - ax[:range] = reverse(ax[:range]) - end - # ticks if axis[:ticks] != :native ticks = get_ticks(axis) @@ -208,6 +203,10 @@ function plotly_axis(plt::Plot, axis::Axis, sp::Subplot) ax[:showgrid] = false end + # flip + if axis[:flip] + ax[:range] = reverse(ax[:range]) + end ax end