JuliaPlots / Plots.jl

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

Broken attributes for polar plots. #1245

Open apalugniok opened 7 years ago

apalugniok commented 7 years ago

Issue to keep track of which attributes don't work with polar plots.

GR:

PyPlot:

Plotly:

PGFPlots:

mkborregaard commented 7 years ago

Thanks a lot! I've added checkboxes for easy tracking.

niczky12 commented 6 years ago

Not sure if this is best place to comment on this, but I found that annotate! acts weirdly on polar coordinates. If I use pyplot() and proj=:polar all works fine and I can annotate using the original coordinates. However, if I use gr() I get weird positions for my annotations.

Here's some code to illustrate:

using Plots
gr()
plot(x->x^2, 1:100, proj=:polar)

annotate!(0.5,0, text("hello!"))
annotate!(-0.5,-1, text("hello!"))

pyplot()
plot(x->x^2, 1:100, proj=:polar)
annotate!(10,100, text("hello!")) # where I want it

If this is not the right place to raise this, let me know and I can open a separate issue. Or just tell me if that's not how I'm supposed to use it. :)

apalugniok commented 6 years ago

Seems like PyPlot is using polar coordinates to place the annotations as would be expected. But GR uses an xy coordinate system with limits (-1,1) to place annotations. I agree it's weird I'll add it to the list and hopefully look into it soon 😄

noxthot commented 1 year ago

Also lims=(1, :auto) adjusts the radial axis for gr-Plots, but does not work for plotly (ignored).