Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

axes.bxp fails without fliers #7263

Copy link
Copy link
Closed
Closed
Copy link
@jacobmj

Description

@jacobmj
Issue body actions

I was trying to use the recent axes bxp() functionality with a list of statistics dictionaries. My dictionaries include only ['whislo', 'q1', 'med', 'q3', 'whishi'].

The documentation mentions that fliers is an optional key so long as showfliers=False. However the bxp function always accesses the fliers key, and accordingly throws a KeyError. The relevant access is as follows:

lib/matplotlib/axes/_axes.py#L3722-L3727

        for pos, width, stats in zip(positions, widths, bxpstats):
            # try to find a new label
            datalabels.append(stats.get('label', pos))
            # fliers coords
            flier_x = np.ones(len(stats['fliers'])) * pos
            flier_y = stats['fliers']

Metadata

Metadata

Assignees

Labels

Difficulty: Easyhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.