--------------------------------------------------------------------------- ValueError Traceback (most recent call last) in () ----> 1 import codecs, os;__pyfile = codecs.open('''/tmp/py9309JZH''', encoding='''utf-8''');__code = __pyfile.read().encode('''utf-8''');__pyfile.close();os.remove('''/tmp/py9309JZH''');exec(compile(__code, '''/home/janiserdmanis/Downloads/testmarkers.py''', 'exec')); /home/janiserdmanis/Downloads/testmarkers.py in () 11 plt.rc("axes",prop_cycle="cycler('linestyle', ['-', (0,(5,5))])" ) 12 plt.plot([1,2]) ---> 13 line, = plt.plot([1,4]) 14 15 ### Other option /usr/local/lib/python2.7/dist-packages/matplotlib/pyplot.pyc in plot(*args, **kwargs) 3159 ax.hold(hold) 3160 try: -> 3161 ret = ax.plot(*args, **kwargs) 3162 finally: 3163 ax.hold(washold) /usr/local/lib/python2.7/dist-packages/matplotlib/__init__.pyc in inner(ax, *args, **kwargs) 1817 warnings.warn(msg % (label_namer, func.__name__), 1818 RuntimeWarning, stacklevel=2) -> 1819 return func(ax, *args, **kwargs) 1820 pre_doc = inner.__doc__ 1821 if pre_doc is None: /usr/local/lib/python2.7/dist-packages/matplotlib/axes/_axes.pyc in plot(self, *args, **kwargs) 1380 kwargs = cbook.normalize_kwargs(kwargs, _alias_map) 1381 -> 1382 for line in self._get_lines(*args, **kwargs): 1383 self.add_line(line) 1384 lines.append(line) /usr/local/lib/python2.7/dist-packages/matplotlib/axes/_base.pyc in _grab_next_args(self, *args, **kwargs) 379 return 380 if len(remaining) <= 3: --> 381 for seg in self._plot_args(remaining, kwargs): 382 yield seg 383 return /usr/local/lib/python2.7/dist-packages/matplotlib/axes/_base.pyc in _plot_args(self, tup, kwargs) 367 ncx, ncy = x.shape[1], y.shape[1] 368 for j in xrange(max(ncx, ncy)): --> 369 seg = func(x[:, j % ncx], y[:, j % ncy], kw, kwargs) 370 ret.append(seg) 371 return ret /usr/local/lib/python2.7/dist-packages/matplotlib/axes/_base.pyc in _makeline(self, x, y, kw, kwargs) 274 default_dict = self._getdefaults(None, kw) 275 self._setdefaults(default_dict, kw) --> 276 seg = mlines.Line2D(x, y, **kw) 277 return seg 278 /usr/local/lib/python2.7/dist-packages/matplotlib/lines.pyc in __init__(self, xdata, ydata, linewidth, linestyle, color, marker, markersize, markeredgewidth, markeredgecolor, markerfacecolor, markerfacecoloralt, fillstyle, antialiased, dash_capstyle, solid_capstyle, dash_joinstyle, solid_joinstyle, pickradius, drawstyle, markevery, **kwargs) 345 self._dashSeq = None 346 --> 347 self.set_linestyle(linestyle) 348 self.set_drawstyle(drawstyle) 349 self.set_linewidth(linewidth) /usr/local/lib/python2.7/dist-packages/matplotlib/lines.pyc in set_linestyle(self, ls) 1089 "`{0}`. See " 1090 "docs of Line2D.set_linestyle for " -> 1091 "valid values.").format(ls)) 1092 1093 self._linestyle = ls ValueError: You passed in an invalid linestyle, `(0, (5, 5))`. See docs of Line2D.set_linestyle for valid values.