Merge pull request #1953 from daschw/polar-axis

put radius 0 at the center for polar plots (fix #1813)
This commit is contained in:
Daniel Schwabeneder 2019-03-14 10:27:49 +01:00 committed by GitHub
commit d83666bed3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -502,7 +502,7 @@ function axis_limits(axis::Axis, should_widen::Bool = default_should_widen(axis)
amin, amax = 0, 2pi
elseif lims == :auto
#widen max radius so ticks dont overlap with theta axis
amin, amax + 0.1 * abs(amax - amin)
0, amax + 0.1 * abs(amax - amin)
else
amin, amax
end