JuliaPlots / Plots.jl

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

Support heatmap with polar axes (already somehow works for PyPlot) #1007

Open zsoerenm opened 7 years ago

zsoerenm commented 7 years ago

Consider this heatmap with polar axes example:

using Plots
pyplot()
theta = linspace(0,2π,120)
rho = 0:30
z = linspace(31,1,31) * ones(120)'
heatmap(theta, rho, z, aspect_ratio=1, proj=:polar)

This works for Pyplot: heatmappyplot Note that the grid is overridden by the heatmap values. If I use Pyplot directly I can bring the grid back on top using ax[:grid](true):

using PyPlot
ax = axes(polar="true")
pcolormesh(linspace(0,2π,120), 0:30, linspace(31,1,31) * ones(120)')
ax[:grid](true)

heatmappyplotdirectly

Sadly it does not work in GR nor in PlotlyJS. Here is the result for PlotlyJs: plotlyjs

mkborregaard commented 7 years ago

This is really a duplicate of #732 . It would certainly be a nice feature to have.

isentropic commented 4 years ago

This presumably works for gr now

ivan-boikov commented 1 year ago

@BeastyBlacksmith could you please remove the PGFPlotsX label (due to #4703)?