Plots.jl: Polar coordinates

Created on 11 Apr 2016  路  2Comments  路  Source: JuliaPlots/Plots.jl

Example:

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

tmp

Backends supported:

  • [x] pyplot
  • [ ] gadfly/immerse
  • [x] plotly/plotlyjs
  • [x] gr

Most helpful comment

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

All 2 comments

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.

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mkborregaard picture mkborregaard  路  3Comments

cortner picture cortner  路  4Comments

lstagner picture lstagner  路  5Comments

jebej picture jebej  路  4Comments

Krastanov picture Krastanov  路  3Comments