JuliaPlots/Plots.jl

Polar plots radial axis limits. PGFPlots

Open

#1,244 建立於 2017年11月14日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Julia (1,943 star) (381 fork)batch import
PGFPlotsXbughelp wanted

描述

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

貢獻者指南