Merge pull request #1940 from daschw/plotly-flip
plotly: fix yflip for `ticks = :none` (fix #1937)
This commit is contained in:
commit
afc1e08f21
@ -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[:tickcolor] = framestyle in (:zerolines, :grid) || !axis[:showaxis] ? rgba_string(invisible()) : rgb_string(axis[:foreground_color_axis])
|
||||||
ax[:linecolor] = rgba_string(axis[:foreground_color_axis])
|
ax[:linecolor] = rgba_string(axis[:foreground_color_axis])
|
||||||
|
|
||||||
# flip
|
|
||||||
if axis[:flip]
|
|
||||||
ax[:range] = reverse(ax[:range])
|
|
||||||
end
|
|
||||||
|
|
||||||
# ticks
|
# ticks
|
||||||
if axis[:ticks] != :native
|
if axis[:ticks] != :native
|
||||||
ticks = get_ticks(axis)
|
ticks = get_ticks(axis)
|
||||||
@ -208,6 +203,10 @@ function plotly_axis(plt::Plot, axis::Axis, sp::Subplot)
|
|||||||
ax[:showgrid] = false
|
ax[:showgrid] = false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# flip
|
||||||
|
if axis[:flip]
|
||||||
|
ax[:range] = reverse(ax[:range])
|
||||||
|
end
|
||||||
|
|
||||||
ax
|
ax
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user