Skip to content

Adapt line_labels for PolyCollections #41

@RemDelaporteMathurin

Description

@RemDelaporteMathurin

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions