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

wielandbrendel opened this Issue Jan 10, 2017 · 1 comment


None yet

2 participants


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

import matplotlib

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.


I can not reproduce this on 2.x, but can on master.

Exact work:

  • add short-ciruit return path to matplotlib.artist.setp if the input is length 0
@tacaswell tacaswell closed this in #7801 Jan 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment