We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0710775 commit 943ee29Copy full SHA for 943ee29
doc/source/index.rst
@@ -273,6 +273,17 @@ or repeating
273
loop_cy_iter = cyl()
274
dd_loop = defaultdict(lambda : next(loop_cy_iter))
275
276
+This can be helpful when plotting complex data which has both a classification
277
+and a label ::
278
+
279
+ finite_cy_iter = iter(cyl)
280
+ styles = defaultdict(lambda : next(finite_cy_iter))
281
+ for group, label, data in DataSet:
282
+ ax.plot(data, label=label, **styles[group])
283
284
+which will result in every ``data`` with the same ``group`` being plotted with
285
+the same style.
286
287
Exceptions
288
----------
289
0 commit comments