X Tutup
Skip to content

Simple IndexError in artist.setp if empty list is passed #7784

@wielandbrendel

Description

@wielandbrendel

An IndexError is raised in matplotlib.artist.setp if argument is an empty list,

import matplotlib
matplotlib.artist.setp([])

Arose in Seaborn jointplot example in their docs where minor_ticks was empty.

Ubuntu 16.04, Python 3.4.3 and Matplotlib 2.0.0rc2+2754.g8c5b548.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty: Easyhttps://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

      X Tutup