JuliaPlots/Plots.jl

Polar plots radial axis limits. PGFPlots

Open

#1.244 geöffnet am 14. Nov. 2017

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Julia (381 Forks)batch import
PGFPlotsXbughelp wanted

Repository-Metriken

Stars
 (1.943 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 13T 6h) (2 gemergte PRs in 30 T)

Beschreibung

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