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

Superimpose roses #204

Open
ulra7 opened this issue Oct 6, 2022 · 0 comments
Open

Superimpose roses #204

ulra7 opened this issue Oct 6, 2022 · 0 comments

Comments

@ulra7
Copy link

ulra7 commented Oct 6, 2022

I wish to plot two series in the same figure. Like this:
A4_ROSE
The figure above was produced by plotting the two roses separately, removing the axes for the orange part, saving them as images, and then using image.paste()

I am trying to get the same result from plotting directly on the same axes. What I am getting is this (please ignore the labels and legends, the problem is with the plot itself):
ALT_ROSE

My code (for the second image) is:
`fig = plt.figure()
ax = WindroseAxes.from_ax()
ax.bar(st.Direction,
st.Value,
bins=bins,
normed=True,
cmap=cmap.get_cmap('Blues'),
edgecolor='none',
zorder=0)

ax.bar(mod.Direction,
mod.Value,
bins=bins,
normed=True,
cmap=cmap.get_cmap('Oranges'),
opening=0.55,
edgecolor='none',
zorder=10)`

It doesn't look right at all. The blue and the orange plots swap order. I am getting the same effects with or without zorder. I have tried using ax.twinx() but that returns a ValueError: Cannot set Axes adjustable to 'datalim' for Axes which override 'get_data_ratio'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant