Fix deprecations.

This commit is contained in:
Andrew Palugniok 2017-11-02 16:33:05 +00:00
parent 4f171e3eb5
commit 12aa43ff5f
2 changed files with 2 additions and 2 deletions

View File

@ -245,7 +245,7 @@ function _series_added(plt::Plot{InspectDRBackend}, series::Series)
#No support for polar grid... but can still perform polar transformation:
if ispolar(sp)
Θ = x; r = y
x = r.*cos(Θ); y = r.*sin(Θ)
x = r.*cos.(Θ); y = r.*sin.(Θ)
end
# doesn't handle mismatched x/y - wrap data (pyplot behaviour):

View File

@ -717,7 +717,7 @@ end
function plotly_polar!(d_out::KW, series::Series)
# convert polar plots x/y to theta/radius
if ispolar(series[:subplot])
d_out[:t] = rad2deg(pop!(d_out, :x))
d_out[:t] = rad2deg.(pop!(d_out, :x))
d_out[:r] = pop!(d_out, :y)
end
end