JuliaPlots / Plots.jl

Powerful convenience for Julia visualizations and data analysis
https://docs.juliaplots.org
Other
1.84k stars 355 forks source link

Polar coordinates #181

Closed tbreloff closed 8 years ago

tbreloff commented 8 years ago

Example:

using Plots
pyplot()
plot(linspace(0,3π,100), rand(100), polar=true, m=:red, bg=:black)

tmp

Backends supported:

tbreloff commented 8 years ago

Strangely, I just found out that the "radius axis" is scaled incorrectly on scatter plots. So this is broken:

scatter(linspace(0,3π,100), rand(100), polar=true)

but this is ok:

plot(linspace(0,3π,100), rand(100), polar=true, w=0, marker=:o)

I guess this is just one more reason to stop using matplotlib's scatter function, and just convert it to an equivalent plot call.

nico202 commented 6 years ago

For future readers, polar=true became proj = :polar