I am trying to create an animated, polar contour plot that represents the evolution of fluid flow over time inside of an annular cross-section. I realize that Plotly does not directly support polar contours, but I have seen several suggestions, both on here and on Github, that suggest that you can use bar_polar to get most of the functionality. Iβve been trying that, but have run into one main issue.
Even with polar_bargap = 0, there is still a gap in my bars, and it makes it much harder to read the plot. With a refined grid, the gaps/lines take up more of the plot than the actual contour colors. Is there any way to get rid of this? Iβve tried just about every combination I can think of to suppress the grid and bar gap, but nothing seems to eliminate it. The plot works perfectly aside from this, so if I can figure this out, this will be a viable way of making polar contours for me.
See below for some code that replicates the issue, as well as a picture highlighting it. As you can see all of the white lines mask the colors of the contour, and make it much more difficult to discern the color gradients.
import numpy as np
import plotly.express as px
r, theta = np.mgrid[0.5:1:150j, 0:360:150j]
color = r**2.+theta
fig = px.bar_polar(r=r.ravel(),theta=theta.ravel(),color=color.ravel())
fig.update_layout(polar_bargap=0)
fig.update_polars(hole=0.5)
fig.show()