Skip to content

Commit

Permalink
Fixed some missed reverts
Browse files Browse the repository at this point in the history
  • Loading branch information
briederer committed Sep 23, 2021
1 parent a6055bb commit 6e0b085
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backends/plotly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -411,15 +411,15 @@ end
plotly_legend_pos(v::Tuple{S,T}) where {S<:Real,T<:Real} =
(coords = v, xanchor = "left", yanchor = "top")

plotly_legend_pos(theta::Real) = plotly_legend_pos((theta, :inner), is3d)
plotly_legend_pos(theta::Real) = plotly_legend_pos((theta, :inner))

function plotly_legend_pos(v::Tuple{S,Symbol}) where {S<:Real}
(s, c) = sincosd(v[1])
xanchors = ["left", "center", "right"]
yanchors = ["bottom", "middle", "top"]

if v[2] === :inner
rect = (0.07, 0.5, (is3d ? 0.93 : 1.0), 0.07, 0.52, 1.0)
rect = (0.07, 0.5, 1.0, 0.07, 0.52, 1.0)
xanchor = xanchors[legend_anchor_index(c)]
yanchor = yanchors[legend_anchor_index(s)]
else
Expand Down

0 comments on commit 6e0b085

Please sign in to comment.