JuliaPlots/Plots.jl

Polar plots radial axis limits. PGFPlots

Open

#1 244 ouverte le 14 nov. 2017

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)Julia (381 forks)batch import
PGFPlotsXbughelp wanted

Métriques du dépôt

Stars
 (1 943 stars)
Métriques de merge PR
 (Merge moyen 13j 6h) (2 PRs mergées en 30 j)

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

Guide contributeur