Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zsoerenm opened this issue Aug 11, 2017 · 3 comments
Open

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

zsoerenm opened this issue Aug 11, 2017 · 3 comments
Labels
enhancement improving existing functionality Plotly PlotlyJS

Comments

@zsoerenm
Copy link

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 mkborregaard added the enhancement improving existing functionality label Aug 14, 2017
@mkborregaard
Copy link
Member

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

@isentropic
Copy link
Member

This presumably works for gr now

@ivan-boikov
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improving existing functionality Plotly PlotlyJS
Projects
None yet
Development

No branches or pull requests

5 participants