@image_comparison(baseline_images=[u'test_eventplot_problem_kwargs'], extensions=[u'png'], remove_text=True)
def test_eventplot_problem_kwargs():
 np.random.seed(0)
 data1 = np.random.random([20]).tolist()
 data2 = np.random.random([10]).tolist()
 data = [data1, data2]
 fig = plt.figure()
 axobj = fig.add_subplot(111)
 with warnings.catch_warnings(record=True) as w:
  warnings.simplefilter(u'always')
  colls = axobj.eventplot(data, colors=[u'r', u'b'], color=[u'c', u'm'], linewidths=[2, 1], linewidth=[1, 2], linestyles=[u'solid', u'dashed'], linestyle=[u'dashdot', u'dotted'])
  assert (len(w) == 3)
  assert all((issubclass(wi.category, IgnoredKeywordWarning) for wi in w))

@ image_comparison ( baseline_images = [ u'test_eventplot_problem_kwargs' ] , extensions = [ u'png' ] , remove_text = True ) def test_eventplot_problem_kwargs ( ) : np . random . seed ( 0 ) data1 = np . random . random ( [ 20 ] ) . tolist ( ) data2 = np . random . random ( [ 10 ] ) . tolist ( ) data = [ data1 , data2 ] fig = plt . figure ( ) axobj = fig . add_subplot ( 111 ) with warnings . catch_warnings ( record = True ) as w : warnings . simplefilter ( u'always' ) colls = axobj . eventplot ( data , colors = [ u'r' , u'b' ] , color = [ u'c' , u'm' ] , linewidths = [ 2 , 1 ] , linewidth = [ 1 , 2 ] , linestyles = [ u'solid' , u'dashed' ] , linestyle = [ u'dashdot' , u'dotted' ] ) assert ( len ( w ) == 3 ) assert all ( ( issubclass ( wi . category , IgnoredKeywordWarning ) for wi in w ) )
test that singular versions of linecollection props raise an ignoredkeywordwarning rather than overriding the plural versions .