JuliaPlots/Plots.jl

Polar plots radial axis limits. PGFPlots

Open

#1,244 opened on Nov 14, 2017

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Julia (381 forks)batch import
PGFPlotsXbughelp wanted

Repository metrics

Stars
 (1,943 stars)
PR merge metrics
 (Avg merge 13d 6h) (2 merged PRs in 30d)

Description

using Plots
pgfplots()
plot(linspace(0, 2pi, 360), linspace(-1, 3, 360), proj = :polar)

polar

The interpretation of axis limits which contain negative numbers is weird instead of the radial axis starting at -1 it starts at 0 and interprets the negative limit as a literal negative radius. This leads to odd looking plots like above. Seems like the main issue for PGFPlots is that it always gives the origin of the polar plot a radius value of 0. Similarly when axis limits do not start at 0 you get

plot(linspace(0, 2pi, 360), linspace(2, 3, 360), proj = :polar)

polarpgfplots

Contributor guide