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

Adapt line_labels for PolyCollections #41

Open
RemDelaporteMathurin opened this issue Jun 29, 2022 · 0 comments
Open

Adapt line_labels for PolyCollections #41

RemDelaporteMathurin opened this issue Jun 29, 2022 · 0 comments

Comments

@RemDelaporteMathurin
Copy link
Contributor

I'm keen on making a PR to adapt line_labels to make it work with fill_between objects (PolyCollection)

This would be the usage and output:

import matplotlib.pyplot as plt
import matplotx
import numpy as np

x = np.linspace(0, 1)
y1 = np.linspace(1, 2)
y2 = np.linspace(2, 4)

plt.fill_between(x, y1, label="label1")
plt.fill_between(x, y1, y2, label="label1")

matplotx.label_fillbetween()
plt.show()

image

@nschloe would you be interested in this feature?

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