-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathlines_api.html
More file actions
996 lines (880 loc) · 67 KB
/
lines_api.html
File metadata and controls
996 lines (880 loc) · 67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>lines — Matplotlib 1.4.0 documentation</title>
<link rel="stylesheet" href="../_static/mpl.css"
type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css"
type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '1.4.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<link rel="search" type="application/opensearchdescription+xml"
title="Search within Matplotlib 1.4.0 documentation"
href="../_static/opensearch.xml"/>
<link rel="top" title="Matplotlib 1.4.0 documentation" href="../index.html" />
<link rel="up" title="The Matplotlib API" href="index.html" />
<link rel="next" title="Markers" href="markers_api.html" />
<link rel="prev" title="Legend" href="legend_api.html" />
<link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet" type="text/css">
<link rel="canonical" href="https://matplotlib.org/stable/api/lines_api.html" />
<script data-domain="matplotlib.org" defer="defer" src="https://views.scientific-python.org/js/script.js"></script>
</head>
<body>
<div id="unreleased-message"> You are reading an old version of the documentation (v1.4.0). For the latest version see <a href="https://matplotlib.org/stable/api/lines_api.html">https://matplotlib.org/stable/api/lines_api.html</a></div>
<link rel="shortcut icon" href="/_static/favicon.ico">
<!-- The "Fork me on github" ribbon -->
<img style="float: right; margin-bottom: -40px; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png" usemap="#ribbonmap"/>
<map name="ribbonmap">
<area shape="poly" coords="15,0,148,-1,148,135" href="https://github.com/matplotlib/matplotlib" title="Fork me on GitHub" />
</map>
<div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px">
<a href="../index.html"><img src="../_static/logo2.png" border="0" alt="matplotlib"/></a>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="markers_api.html" title="Markers"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="legend_api.html" title="Legend"
accesskey="P">previous</a> |</li>
<li><a href="../index.html">home</a>| </li>
<li><a href="../examples/index.html">examples</a>| </li>
<li><a href="../gallery.html">gallery</a>| </li>
<li><a href="pyplot_summary.html">pyplot</a>| </li>
<li><a href="../contents.html">docs</a> »</li>
<li><a href="index.html" accesskey="U">The Matplotlib API</a> »</li>
</ul>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h3><a href="../contents.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">lines</a><ul>
<li><a class="reference internal" href="#module-matplotlib.lines"><tt class="docutils literal"><span class="pre">matplotlib.lines</span></tt></a></li>
</ul>
</li>
</ul>
<h4>Previous topic</h4>
<p class="topless"><a href="legend_api.html"
title="previous chapter">Legend</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="markers_api.html"
title="next chapter">Markers</a></p>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/api/lines_api.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<form class="search" action="../search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="lines">
<h1>lines<a class="headerlink" href="#lines" title="Permalink to this headline">¶</a></h1>
<div class="section" id="module-matplotlib.lines">
<span id="matplotlib-lines"></span><h2><a class="reference internal" href="#module-matplotlib.lines" title="matplotlib.lines"><tt class="xref py py-mod docutils literal"><span class="pre">matplotlib.lines</span></tt></a><a class="headerlink" href="#module-matplotlib.lines" title="Permalink to this headline">¶</a></h2>
<p>This module contains all the 2D line class which can draw with a
variety of line styles, markers and colors.</p>
<dl class="class">
<dt id="matplotlib.lines.Line2D">
<em class="property">class </em><tt class="descclassname">matplotlib.lines.</tt><tt class="descname">Line2D</tt><span class="sig-paren">(</span><em>xdata</em>, <em>ydata</em>, <em>linewidth=None</em>, <em>linestyle=None</em>, <em>color=None</em>, <em>marker=None</em>, <em>markersize=None</em>, <em>markeredgewidth=None</em>, <em>markeredgecolor=None</em>, <em>markerfacecolor=None</em>, <em>markerfacecoloralt=u'none'</em>, <em>fillstyle=u'full'</em>, <em>antialiased=None</em>, <em>dash_capstyle=None</em>, <em>solid_capstyle=None</em>, <em>dash_joinstyle=None</em>, <em>solid_joinstyle=None</em>, <em>pickradius=5</em>, <em>drawstyle=None</em>, <em>markevery=None</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="artist_api.html#matplotlib.artist.Artist" title="matplotlib.artist.Artist"><tt class="xref py py-class docutils literal"><span class="pre">matplotlib.artist.Artist</span></tt></a></p>
<p>A line - the line can have both a solid linestyle connecting all
the vertices, and a marker at each vertex. Additionally, the
drawing of the solid line is influenced by the drawstyle, eg one
can create “stepped” lines in various styles.</p>
<p>Create a <a class="reference internal" href="#matplotlib.lines.Line2D" title="matplotlib.lines.Line2D"><tt class="xref py py-class docutils literal"><span class="pre">Line2D</span></tt></a> instance with <em>x</em>
and <em>y</em> data in sequences <em>xdata</em>, <em>ydata</em>.</p>
<p>The kwargs are <a class="reference internal" href="#matplotlib.lines.Line2D" title="matplotlib.lines.Line2D"><tt class="xref py py-class docutils literal"><span class="pre">Line2D</span></tt></a> properties:</p>
<blockquote>
<div><table border="1" class="docutils">
<colgroup>
<col width="32%" />
<col width="68%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Property</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_agg_filter" title="matplotlib.artist.Artist.set_agg_filter"><tt class="xref py py-meth docutils literal"><span class="pre">agg_filter</span></tt></a></td>
<td>unknown</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_alpha" title="matplotlib.artist.Artist.set_alpha"><tt class="xref py py-meth docutils literal"><span class="pre">alpha</span></tt></a></td>
<td>float (0.0 transparent through 1.0 opaque)</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_animated" title="matplotlib.artist.Artist.set_animated"><tt class="xref py py-meth docutils literal"><span class="pre">animated</span></tt></a></td>
<td>[True | False]</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_antialiased" title="matplotlib.lines.Line2D.set_antialiased"><tt class="xref py py-meth docutils literal"><span class="pre">antialiased</span></tt></a> or aa</td>
<td>[True | False]</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_axes" title="matplotlib.lines.Line2D.set_axes"><tt class="xref py py-meth docutils literal"><span class="pre">axes</span></tt></a></td>
<td>an <a class="reference internal" href="axes_api.html#matplotlib.axes.Axes" title="matplotlib.axes.Axes"><tt class="xref py py-class docutils literal"><span class="pre">Axes</span></tt></a> instance</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_clip_box" title="matplotlib.artist.Artist.set_clip_box"><tt class="xref py py-meth docutils literal"><span class="pre">clip_box</span></tt></a></td>
<td>a <a class="reference internal" href="../devel/transformations.html#matplotlib.transforms.Bbox" title="matplotlib.transforms.Bbox"><tt class="xref py py-class docutils literal"><span class="pre">matplotlib.transforms.Bbox</span></tt></a> instance</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_clip_on" title="matplotlib.artist.Artist.set_clip_on"><tt class="xref py py-meth docutils literal"><span class="pre">clip_on</span></tt></a></td>
<td>[True | False]</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_clip_path" title="matplotlib.artist.Artist.set_clip_path"><tt class="xref py py-meth docutils literal"><span class="pre">clip_path</span></tt></a></td>
<td>[ (<a class="reference internal" href="path_api.html#matplotlib.path.Path" title="matplotlib.path.Path"><tt class="xref py py-class docutils literal"><span class="pre">Path</span></tt></a>, <a class="reference internal" href="../devel/transformations.html#matplotlib.transforms.Transform" title="matplotlib.transforms.Transform"><tt class="xref py py-class docutils literal"><span class="pre">Transform</span></tt></a>) | <a class="reference internal" href="patches_api.html#matplotlib.patches.Patch" title="matplotlib.patches.Patch"><tt class="xref py py-class docutils literal"><span class="pre">Patch</span></tt></a> | None ]</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_color" title="matplotlib.lines.Line2D.set_color"><tt class="xref py py-meth docutils literal"><span class="pre">color</span></tt></a> or c</td>
<td>any matplotlib color</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_contains" title="matplotlib.artist.Artist.set_contains"><tt class="xref py py-meth docutils literal"><span class="pre">contains</span></tt></a></td>
<td>a callable function</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_dash_capstyle" title="matplotlib.lines.Line2D.set_dash_capstyle"><tt class="xref py py-meth docutils literal"><span class="pre">dash_capstyle</span></tt></a></td>
<td>[‘butt’ | ‘round’ | ‘projecting’]</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_dash_joinstyle" title="matplotlib.lines.Line2D.set_dash_joinstyle"><tt class="xref py py-meth docutils literal"><span class="pre">dash_joinstyle</span></tt></a></td>
<td>[‘miter’ | ‘round’ | ‘bevel’]</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_dashes" title="matplotlib.lines.Line2D.set_dashes"><tt class="xref py py-meth docutils literal"><span class="pre">dashes</span></tt></a></td>
<td>sequence of on/off ink in points</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_drawstyle" title="matplotlib.lines.Line2D.set_drawstyle"><tt class="xref py py-meth docutils literal"><span class="pre">drawstyle</span></tt></a></td>
<td>[‘default’ | ‘steps’ | ‘steps-pre’ | ‘steps-mid’ | ‘steps-post’]</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_figure" title="matplotlib.artist.Artist.set_figure"><tt class="xref py py-meth docutils literal"><span class="pre">figure</span></tt></a></td>
<td>a <a class="reference internal" href="figure_api.html#matplotlib.figure.Figure" title="matplotlib.figure.Figure"><tt class="xref py py-class docutils literal"><span class="pre">matplotlib.figure.Figure</span></tt></a> instance</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_fillstyle" title="matplotlib.lines.Line2D.set_fillstyle"><tt class="xref py py-meth docutils literal"><span class="pre">fillstyle</span></tt></a></td>
<td>[‘full’ | ‘left’ | ‘right’ | ‘bottom’ | ‘top’ | ‘none’]</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_gid" title="matplotlib.artist.Artist.set_gid"><tt class="xref py py-meth docutils literal"><span class="pre">gid</span></tt></a></td>
<td>an id string</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_label" title="matplotlib.artist.Artist.set_label"><tt class="xref py py-meth docutils literal"><span class="pre">label</span></tt></a></td>
<td>string or anything printable with ‘%s’ conversion.</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_linestyle" title="matplotlib.lines.Line2D.set_linestyle"><tt class="xref py py-meth docutils literal"><span class="pre">linestyle</span></tt></a> or ls</td>
<td>[<tt class="docutils literal"><span class="pre">'-'</span></tt> | <tt class="docutils literal"><span class="pre">'--'</span></tt> | <tt class="docutils literal"><span class="pre">'-.'</span></tt> | <tt class="docutils literal"><span class="pre">':'</span></tt> | <tt class="docutils literal"><span class="pre">'None'</span></tt> | <tt class="docutils literal"><span class="pre">'</span> <span class="pre">'</span></tt> | <tt class="docutils literal"><span class="pre">''</span></tt>] and any drawstyle in combination with a linestyle, e.g., <tt class="docutils literal"><span class="pre">'steps--'</span></tt>.</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_linewidth" title="matplotlib.lines.Line2D.set_linewidth"><tt class="xref py py-meth docutils literal"><span class="pre">linewidth</span></tt></a> or lw</td>
<td>float value in points</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_lod" title="matplotlib.artist.Artist.set_lod"><tt class="xref py py-meth docutils literal"><span class="pre">lod</span></tt></a></td>
<td>[True | False]</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_marker" title="matplotlib.lines.Line2D.set_marker"><tt class="xref py py-meth docutils literal"><span class="pre">marker</span></tt></a></td>
<td>unknown</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_markeredgecolor" title="matplotlib.lines.Line2D.set_markeredgecolor"><tt class="xref py py-meth docutils literal"><span class="pre">markeredgecolor</span></tt></a> or mec</td>
<td>any matplotlib color</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_markeredgewidth" title="matplotlib.lines.Line2D.set_markeredgewidth"><tt class="xref py py-meth docutils literal"><span class="pre">markeredgewidth</span></tt></a> or mew</td>
<td>float value in points</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_markerfacecolor" title="matplotlib.lines.Line2D.set_markerfacecolor"><tt class="xref py py-meth docutils literal"><span class="pre">markerfacecolor</span></tt></a> or mfc</td>
<td>any matplotlib color</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_markerfacecoloralt" title="matplotlib.lines.Line2D.set_markerfacecoloralt"><tt class="xref py py-meth docutils literal"><span class="pre">markerfacecoloralt</span></tt></a> or mfcalt</td>
<td>any matplotlib color</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_markersize" title="matplotlib.lines.Line2D.set_markersize"><tt class="xref py py-meth docutils literal"><span class="pre">markersize</span></tt></a> or ms</td>
<td>float</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_markevery" title="matplotlib.lines.Line2D.set_markevery"><tt class="xref py py-meth docutils literal"><span class="pre">markevery</span></tt></a></td>
<td>unknown</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_path_effects" title="matplotlib.artist.Artist.set_path_effects"><tt class="xref py py-meth docutils literal"><span class="pre">path_effects</span></tt></a></td>
<td>unknown</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_picker" title="matplotlib.lines.Line2D.set_picker"><tt class="xref py py-meth docutils literal"><span class="pre">picker</span></tt></a></td>
<td>float distance in points or callable pick function <tt class="docutils literal"><span class="pre">fn(artist,</span> <span class="pre">event)</span></tt></td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_pickradius" title="matplotlib.lines.Line2D.set_pickradius"><tt class="xref py py-meth docutils literal"><span class="pre">pickradius</span></tt></a></td>
<td>float distance in points</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_rasterized" title="matplotlib.artist.Artist.set_rasterized"><tt class="xref py py-meth docutils literal"><span class="pre">rasterized</span></tt></a></td>
<td>[True | False | None]</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_sketch_params" title="matplotlib.artist.Artist.set_sketch_params"><tt class="xref py py-meth docutils literal"><span class="pre">sketch_params</span></tt></a></td>
<td>unknown</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_snap" title="matplotlib.artist.Artist.set_snap"><tt class="xref py py-meth docutils literal"><span class="pre">snap</span></tt></a></td>
<td>unknown</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_solid_capstyle" title="matplotlib.lines.Line2D.set_solid_capstyle"><tt class="xref py py-meth docutils literal"><span class="pre">solid_capstyle</span></tt></a></td>
<td>[‘butt’ | ‘round’ | ‘projecting’]</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_solid_joinstyle" title="matplotlib.lines.Line2D.set_solid_joinstyle"><tt class="xref py py-meth docutils literal"><span class="pre">solid_joinstyle</span></tt></a></td>
<td>[‘miter’ | ‘round’ | ‘bevel’]</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_transform" title="matplotlib.lines.Line2D.set_transform"><tt class="xref py py-meth docutils literal"><span class="pre">transform</span></tt></a></td>
<td>a <a class="reference internal" href="../devel/transformations.html#matplotlib.transforms.Transform" title="matplotlib.transforms.Transform"><tt class="xref py py-class docutils literal"><span class="pre">matplotlib.transforms.Transform</span></tt></a> instance</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_url" title="matplotlib.artist.Artist.set_url"><tt class="xref py py-meth docutils literal"><span class="pre">url</span></tt></a></td>
<td>a url string</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_visible" title="matplotlib.artist.Artist.set_visible"><tt class="xref py py-meth docutils literal"><span class="pre">visible</span></tt></a></td>
<td>[True | False]</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_xdata" title="matplotlib.lines.Line2D.set_xdata"><tt class="xref py py-meth docutils literal"><span class="pre">xdata</span></tt></a></td>
<td>1D array</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#matplotlib.lines.Line2D.set_ydata" title="matplotlib.lines.Line2D.set_ydata"><tt class="xref py py-meth docutils literal"><span class="pre">ydata</span></tt></a></td>
<td>1D array</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="artist_api.html#matplotlib.artist.Artist.set_zorder" title="matplotlib.artist.Artist.set_zorder"><tt class="xref py py-meth docutils literal"><span class="pre">zorder</span></tt></a></td>
<td>any number</td>
</tr>
</tbody>
</table>
</div></blockquote>
<p>See <a class="reference internal" href="#matplotlib.lines.Line2D.set_linestyle" title="matplotlib.lines.Line2D.set_linestyle"><tt class="xref py py-meth docutils literal"><span class="pre">set_linestyle()</span></tt></a> for a decription of the line styles,
<a class="reference internal" href="#matplotlib.lines.Line2D.set_marker" title="matplotlib.lines.Line2D.set_marker"><tt class="xref py py-meth docutils literal"><span class="pre">set_marker()</span></tt></a> for a description of the markers, and
<a class="reference internal" href="#matplotlib.lines.Line2D.set_drawstyle" title="matplotlib.lines.Line2D.set_drawstyle"><tt class="xref py py-meth docutils literal"><span class="pre">set_drawstyle()</span></tt></a> for a description of the draw styles.</p>
<dl class="method">
<dt id="matplotlib.lines.Line2D.contains">
<tt class="descname">contains</tt><span class="sig-paren">(</span><em>mouseevent</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.contains" title="Permalink to this definition">¶</a></dt>
<dd><p>Test whether the mouse event occurred on the line. The pick
radius determines the precision of the location test (usually
within five points of the value). Use
<a class="reference internal" href="#matplotlib.lines.Line2D.get_pickradius" title="matplotlib.lines.Line2D.get_pickradius"><tt class="xref py py-meth docutils literal"><span class="pre">get_pickradius()</span></tt></a> or
<a class="reference internal" href="#matplotlib.lines.Line2D.set_pickradius" title="matplotlib.lines.Line2D.set_pickradius"><tt class="xref py py-meth docutils literal"><span class="pre">set_pickradius()</span></tt></a> to view or
modify it.</p>
<p>Returns <em>True</em> if any values are within the radius along with
<tt class="docutils literal"><span class="pre">{'ind':</span> <span class="pre">pointlist}</span></tt>, where <em>pointlist</em> is the set of points
within the radius.</p>
<p>TODO: sort returned indices by distance</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.draw">
<tt class="descname">draw</tt><span class="sig-paren">(</span><em>artist</em>, <em>renderer</em>, <em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.draw" title="Permalink to this definition">¶</a></dt>
<dd><p>draw the Line with <tt class="xref py py-obj docutils literal"><span class="pre">renderer</span></tt> unless visibility is False</p>
</dd></dl>
<dl class="attribute">
<dt id="matplotlib.lines.Line2D.drawStyleKeys">
<tt class="descname">drawStyleKeys</tt><em class="property"> = [u'default', u'steps-mid', u'steps-pre', u'steps-post', u'steps']</em><a class="headerlink" href="#matplotlib.lines.Line2D.drawStyleKeys" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="matplotlib.lines.Line2D.drawStyles">
<tt class="descname">drawStyles</tt><em class="property"> = {u'default': u'_draw_lines', u'steps-mid': u'_draw_steps_mid', u'steps': u'_draw_steps_pre', u'steps-pre': u'_draw_steps_pre', u'steps-post': u'_draw_steps_post'}</em><a class="headerlink" href="#matplotlib.lines.Line2D.drawStyles" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="matplotlib.lines.Line2D.fillStyles">
<tt class="descname">fillStyles</tt><em class="property"> = (u'full', u'left', u'right', u'bottom', u'top', u'none')</em><a class="headerlink" href="#matplotlib.lines.Line2D.fillStyles" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="matplotlib.lines.Line2D.filled_markers">
<tt class="descname">filled_markers</tt><em class="property"> = (u'o', u'v', u'^', u'<', u'>', u'8', u's', u'p', u'*', u'h', u'H', u'D', u'd')</em><a class="headerlink" href="#matplotlib.lines.Line2D.filled_markers" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_aa">
<tt class="descname">get_aa</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_aa" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for get_antialiased</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_antialiased">
<tt class="descname">get_antialiased</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_antialiased" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_c">
<tt class="descname">get_c</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_c" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for get_color</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_color">
<tt class="descname">get_color</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_color" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_dash_capstyle">
<tt class="descname">get_dash_capstyle</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_dash_capstyle" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the cap style for dashed linestyles</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_dash_joinstyle">
<tt class="descname">get_dash_joinstyle</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_dash_joinstyle" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the join style for dashed linestyles</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_data">
<tt class="descname">get_data</tt><span class="sig-paren">(</span><em>orig=True</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_data" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the xdata, ydata.</p>
<p>If <em>orig</em> is <em>True</em>, return the original data.</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_drawstyle">
<tt class="descname">get_drawstyle</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_drawstyle" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_fillstyle">
<tt class="descname">get_fillstyle</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_fillstyle" title="Permalink to this definition">¶</a></dt>
<dd><p>return the marker fillstyle</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_linestyle">
<tt class="descname">get_linestyle</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_linestyle" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_linewidth">
<tt class="descname">get_linewidth</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_linewidth" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_ls">
<tt class="descname">get_ls</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_ls" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for get_linestyle</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_lw">
<tt class="descname">get_lw</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_lw" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for get_linewidth</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_marker">
<tt class="descname">get_marker</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_marker" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_markeredgecolor">
<tt class="descname">get_markeredgecolor</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_markeredgecolor" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_markeredgewidth">
<tt class="descname">get_markeredgewidth</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_markeredgewidth" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_markerfacecolor">
<tt class="descname">get_markerfacecolor</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_markerfacecolor" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_markerfacecoloralt">
<tt class="descname">get_markerfacecoloralt</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_markerfacecoloralt" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_markersize">
<tt class="descname">get_markersize</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_markersize" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_markevery">
<tt class="descname">get_markevery</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_markevery" title="Permalink to this definition">¶</a></dt>
<dd><p>return the markevery setting</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_mec">
<tt class="descname">get_mec</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_mec" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for get_markeredgecolor</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_mew">
<tt class="descname">get_mew</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_mew" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for get_markeredgewidth</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_mfc">
<tt class="descname">get_mfc</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_mfc" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for get_markerfacecolor</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_mfcalt">
<tt class="descname">get_mfcalt</tt><span class="sig-paren">(</span><em>alt=False</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_mfcalt" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for get_markerfacecoloralt</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_ms">
<tt class="descname">get_ms</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_ms" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for get_markersize</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_path">
<tt class="descname">get_path</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_path" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the <a class="reference internal" href="path_api.html#matplotlib.path.Path" title="matplotlib.path.Path"><tt class="xref py py-class docutils literal"><span class="pre">Path</span></tt></a> object associated
with this line.</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_pickradius">
<tt class="descname">get_pickradius</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_pickradius" title="Permalink to this definition">¶</a></dt>
<dd><p>return the pick radius used for containment tests</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_solid_capstyle">
<tt class="descname">get_solid_capstyle</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_solid_capstyle" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the cap style for solid linestyles</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_solid_joinstyle">
<tt class="descname">get_solid_joinstyle</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_solid_joinstyle" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the join style for solid linestyles</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_window_extent">
<tt class="descname">get_window_extent</tt><span class="sig-paren">(</span><em>renderer</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_window_extent" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_xdata">
<tt class="descname">get_xdata</tt><span class="sig-paren">(</span><em>orig=True</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_xdata" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the xdata.</p>
<p>If <em>orig</em> is <em>True</em>, return the original data, else the
processed data.</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_xydata">
<tt class="descname">get_xydata</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_xydata" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the <em>xy</em> data as a Nx2 numpy array.</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.get_ydata">
<tt class="descname">get_ydata</tt><span class="sig-paren">(</span><em>orig=True</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.get_ydata" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the ydata.</p>
<p>If <em>orig</em> is <em>True</em>, return the original data, else the
processed data.</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.is_dashed">
<tt class="descname">is_dashed</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.is_dashed" title="Permalink to this definition">¶</a></dt>
<dd><p>return True if line is dashstyle</p>
</dd></dl>
<dl class="attribute">
<dt id="matplotlib.lines.Line2D.lineStyles">
<tt class="descname">lineStyles</tt><em class="property"> = {u'': u'_draw_nothing', u' ': u'_draw_nothing', u'None': u'_draw_nothing', u'--': u'_draw_dashed', u'-.': u'_draw_dash_dot', u'-': u'_draw_solid', u':': u'_draw_dotted'}</em><a class="headerlink" href="#matplotlib.lines.Line2D.lineStyles" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="matplotlib.lines.Line2D.markers">
<tt class="descname">markers</tt><em class="property"> = {0: u'tickleft', 1: u'tickright', 2: u'tickup', 3: u'tickdown', 4: u'caretleft', u'D': u'diamond', 6: u'caretup', 7: u'caretdown', u's': u'square', u'|': u'vline', u'': u'nothing', u'None': u'nothing', u'x': u'x', None: u'nothing', 5: u'caretright', u'_': u'hline', u'^': u'triangle_up', u' ': u'nothing', u'd': u'thin_diamond', u'h': u'hexagon1', u'+': u'plus', u'*': u'star', u',': u'pixel', u'o': u'circle', u'.': u'point', u'1': u'tri_down', u'p': u'pentagon', u'3': u'tri_left', u'2': u'tri_up', u'4': u'tri_right', u'H': u'hexagon2', u'v': u'triangle_down', u'8': u'octagon', u'<': u'triangle_left', u'>': u'triangle_right'}</em><a class="headerlink" href="#matplotlib.lines.Line2D.markers" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.recache">
<tt class="descname">recache</tt><span class="sig-paren">(</span><em>always=False</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.recache" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.recache_always">
<tt class="descname">recache_always</tt><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.recache_always" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_aa">
<tt class="descname">set_aa</tt><span class="sig-paren">(</span><em>val</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_aa" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for set_antialiased</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_antialiased">
<tt class="descname">set_antialiased</tt><span class="sig-paren">(</span><em>b</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_antialiased" title="Permalink to this definition">¶</a></dt>
<dd><p>True if line should be drawin with antialiased rendering</p>
<p>ACCEPTS: [True | False]</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_axes">
<tt class="descname">set_axes</tt><span class="sig-paren">(</span><em>ax</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_axes" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the <a class="reference internal" href="axes_api.html#matplotlib.axes.Axes" title="matplotlib.axes.Axes"><tt class="xref py py-class docutils literal"><span class="pre">Axes</span></tt></a> instance in which the
artist resides, if any.</p>
<p>ACCEPTS: an <a class="reference internal" href="axes_api.html#matplotlib.axes.Axes" title="matplotlib.axes.Axes"><tt class="xref py py-class docutils literal"><span class="pre">Axes</span></tt></a> instance</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_c">
<tt class="descname">set_c</tt><span class="sig-paren">(</span><em>val</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_c" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for set_color</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_color">
<tt class="descname">set_color</tt><span class="sig-paren">(</span><em>color</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_color" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the color of the line</p>
<p>ACCEPTS: any matplotlib color</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_dash_capstyle">
<tt class="descname">set_dash_capstyle</tt><span class="sig-paren">(</span><em>s</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_dash_capstyle" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the cap style for dashed linestyles</p>
<p>ACCEPTS: [‘butt’ | ‘round’ | ‘projecting’]</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_dash_joinstyle">
<tt class="descname">set_dash_joinstyle</tt><span class="sig-paren">(</span><em>s</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_dash_joinstyle" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the join style for dashed linestyles
ACCEPTS: [‘miter’ | ‘round’ | ‘bevel’]</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_dashes">
<tt class="descname">set_dashes</tt><span class="sig-paren">(</span><em>seq</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_dashes" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the dash sequence, sequence of dashes with on off ink in
points. If seq is empty or if seq = (None, None), the
linestyle will be set to solid.</p>
<p>ACCEPTS: sequence of on/off ink in points</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_data">
<tt class="descname">set_data</tt><span class="sig-paren">(</span><em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_data" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the x and y data</p>
<p>ACCEPTS: 2D array (rows are x, y) or two 1D arrays</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_drawstyle">
<tt class="descname">set_drawstyle</tt><span class="sig-paren">(</span><em>drawstyle</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_drawstyle" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the drawstyle of the plot</p>
<p>‘default’ connects the points with lines. The steps variants
produce step-plots. ‘steps’ is equivalent to ‘steps-pre’ and
is maintained for backward-compatibility.</p>
<dl class="docutils">
<dt>ACCEPTS: [‘default’ | ‘steps’ | ‘steps-pre’ | ‘steps-mid’ |</dt>
<dd>‘steps-post’]</dd>
</dl>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_fillstyle">
<tt class="descname">set_fillstyle</tt><span class="sig-paren">(</span><em>fs</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_fillstyle" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the marker fill style; ‘full’ means fill the whole marker.
‘none’ means no filling; other options are for half-filled markers.</p>
<p>ACCEPTS: [‘full’ | ‘left’ | ‘right’ | ‘bottom’ | ‘top’ | ‘none’]</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_linestyle">
<tt class="descname">set_linestyle</tt><span class="sig-paren">(</span><em>linestyle</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_linestyle" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the linestyle of the line (also accepts drawstyles)</p>
<table border="1" class="docutils">
<colgroup>
<col width="48%" />
<col width="52%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">linestyle</th>
<th class="head">description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><tt class="docutils literal"><span class="pre">'-'</span></tt></td>
<td>solid</td>
</tr>
<tr class="row-odd"><td><tt class="docutils literal"><span class="pre">'--'</span></tt></td>
<td>dashed</td>
</tr>
<tr class="row-even"><td><tt class="docutils literal"><span class="pre">'-.'</span></tt></td>
<td>dash_dot</td>
</tr>
<tr class="row-odd"><td><tt class="docutils literal"><span class="pre">':'</span></tt></td>
<td>dotted</td>
</tr>
<tr class="row-even"><td><tt class="docutils literal"><span class="pre">'None'</span></tt></td>
<td>draw nothing</td>
</tr>
<tr class="row-odd"><td><tt class="docutils literal"><span class="pre">'</span> <span class="pre">'</span></tt></td>
<td>draw nothing</td>
</tr>
<tr class="row-even"><td><tt class="docutils literal"><span class="pre">''</span></tt></td>
<td>draw nothing</td>
</tr>
</tbody>
</table>
<p>‘steps’ is equivalent to ‘steps-pre’ and is maintained for
backward-compatibility.</p>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<dl class="last docutils">
<dt><a class="reference internal" href="#matplotlib.lines.Line2D.set_drawstyle" title="matplotlib.lines.Line2D.set_drawstyle"><tt class="xref py py-meth docutils literal"><span class="pre">set_drawstyle()</span></tt></a></dt>
<dd>To set the drawing style (stepping) of the plot.</dd>
</dl>
</div>
<dl class="docutils">
<dt>ACCEPTS: [<tt class="docutils literal"><span class="pre">'-'</span></tt> | <tt class="docutils literal"><span class="pre">'--'</span></tt> | <tt class="docutils literal"><span class="pre">'-.'</span></tt> | <tt class="docutils literal"><span class="pre">':'</span></tt> | <tt class="docutils literal"><span class="pre">'None'</span></tt> |</dt>
<dd><tt class="docutils literal"><span class="pre">'</span> <span class="pre">'</span></tt> | <tt class="docutils literal"><span class="pre">''</span></tt>]</dd>
</dl>
<p>and any drawstyle in combination with a linestyle, e.g., <tt class="docutils literal"><span class="pre">'steps--'</span></tt>.</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_linewidth">
<tt class="descname">set_linewidth</tt><span class="sig-paren">(</span><em>w</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_linewidth" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the line width in points</p>
<p>ACCEPTS: float value in points</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_ls">
<tt class="descname">set_ls</tt><span class="sig-paren">(</span><em>val</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_ls" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for set_linestyle</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_lw">
<tt class="descname">set_lw</tt><span class="sig-paren">(</span><em>val</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_lw" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for set_linewidth</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_marker">
<tt class="descname">set_marker</tt><span class="sig-paren">(</span><em>marker</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_marker" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the line marker</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>marker: marker style</strong> :</p>
<blockquote class="last">
<div><p>See <a class="reference internal" href="markers_api.html#module-matplotlib.markers" title="matplotlib.markers"><tt class="xref py py-obj docutils literal"><span class="pre">markers</span></tt></a> for full description of possible
argument</p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_markeredgecolor">
<tt class="descname">set_markeredgecolor</tt><span class="sig-paren">(</span><em>ec</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_markeredgecolor" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the marker edge color</p>
<p>ACCEPTS: any matplotlib color</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_markeredgewidth">
<tt class="descname">set_markeredgewidth</tt><span class="sig-paren">(</span><em>ew</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_markeredgewidth" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the marker edge width in points</p>
<p>ACCEPTS: float value in points</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_markerfacecolor">
<tt class="descname">set_markerfacecolor</tt><span class="sig-paren">(</span><em>fc</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_markerfacecolor" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the marker face color.</p>
<p>ACCEPTS: any matplotlib color</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_markerfacecoloralt">
<tt class="descname">set_markerfacecoloralt</tt><span class="sig-paren">(</span><em>fc</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_markerfacecoloralt" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the alternate marker face color.</p>
<p>ACCEPTS: any matplotlib color</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_markersize">
<tt class="descname">set_markersize</tt><span class="sig-paren">(</span><em>sz</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_markersize" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the marker size in points</p>
<p>ACCEPTS: float</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_markevery">
<tt class="descname">set_markevery</tt><span class="sig-paren">(</span><em>every</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_markevery" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the markevery property to subsample the plot when using markers.</p>
<p>e.g., if <tt class="xref py py-obj docutils literal"><span class="pre">every=5</span></tt>, every 5-th marker will be plotted.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>every: None | int | length-2 tuple of int | slice | list/array of int |</strong> :</p>
<p><strong>float | length-2 tuple of float</strong> :</p>
<blockquote class="last">
<div><p>Which markers to plot.</p>
<ul class="simple">
<li>every=None, every point will be plotted.</li>
<li>every=N, every N-th marker will be plotted starting with
marker 0.</li>
<li>every=(start, N), every N-th marker, starting at point
start, will be plotted.</li>
<li>every=slice(start, end, N), every N-th marker, starting at
point start, upto but not including point end, will be plotted.</li>
<li>every=[i, j, m, n], only markers at points i, j, m, and n
will be plotted.</li>
<li>every=0.1, (i.e. a float) then markers will be spaced at
approximately equal distances along the line; the distance
along the line between markers is determined by multiplying the
display-coordinate distance of the axes bounding-box diagonal
by the value of every.</li>
<li>every=(0.5, 0.1) (i.e. a length-2 tuple of float), the
same functionality as every=0.1 is exhibited but the first
marker will be 0.5 multiplied by the
display-cordinate-diagonal-distance along the line.</li>
</ul>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<p class="rubric">Notes</p>
<p>Setting the markevery property will only show markers at actual data
points. When using float arguments to set the markevery property
on irregularly spaced data, the markers will likely not appear evenly
spaced because the actual data points do not coincide with the
theoretical spacing between markers.</p>
<p>When using a start offset to specify the first marker, the offset will
be from the first data point which may be different from the first
the visible data point if the plot is zoomed in.</p>
<p>If zooming in on a plot when using float arguments then the actual
data points that have markers will change because the distance between
markers is always determined from the display-coordinates
axes-bounding-box-diagonal regardless of the actual axes data limits.</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_mec">
<tt class="descname">set_mec</tt><span class="sig-paren">(</span><em>val</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_mec" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for set_markeredgecolor</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_mew">
<tt class="descname">set_mew</tt><span class="sig-paren">(</span><em>val</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_mew" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for set_markeredgewidth</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_mfc">
<tt class="descname">set_mfc</tt><span class="sig-paren">(</span><em>val</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_mfc" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for set_markerfacecolor</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_mfcalt">
<tt class="descname">set_mfcalt</tt><span class="sig-paren">(</span><em>val</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_mfcalt" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for set_markerfacecoloralt</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_ms">
<tt class="descname">set_ms</tt><span class="sig-paren">(</span><em>val</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_ms" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for set_markersize</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_picker">
<tt class="descname">set_picker</tt><span class="sig-paren">(</span><em>p</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_picker" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets the event picker details for the line.</p>
<p>ACCEPTS: float distance in points or callable pick function
<tt class="docutils literal"><span class="pre">fn(artist,</span> <span class="pre">event)</span></tt></p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_pickradius">
<tt class="descname">set_pickradius</tt><span class="sig-paren">(</span><em>d</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_pickradius" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets the pick radius used for containment tests</p>
<p>ACCEPTS: float distance in points</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_solid_capstyle">
<tt class="descname">set_solid_capstyle</tt><span class="sig-paren">(</span><em>s</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_solid_capstyle" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the cap style for solid linestyles</p>
<p>ACCEPTS: [‘butt’ | ‘round’ | ‘projecting’]</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_solid_joinstyle">
<tt class="descname">set_solid_joinstyle</tt><span class="sig-paren">(</span><em>s</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_solid_joinstyle" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the join style for solid linestyles
ACCEPTS: [‘miter’ | ‘round’ | ‘bevel’]</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_transform">
<tt class="descname">set_transform</tt><span class="sig-paren">(</span><em>t</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_transform" title="Permalink to this definition">¶</a></dt>
<dd><p>set the Transformation instance used by this artist</p>
<p>ACCEPTS: a <a class="reference internal" href="../devel/transformations.html#matplotlib.transforms.Transform" title="matplotlib.transforms.Transform"><tt class="xref py py-class docutils literal"><span class="pre">matplotlib.transforms.Transform</span></tt></a> instance</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_xdata">
<tt class="descname">set_xdata</tt><span class="sig-paren">(</span><em>x</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_xdata" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the data np.array for x</p>
<p>ACCEPTS: 1D array</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.set_ydata">
<tt class="descname">set_ydata</tt><span class="sig-paren">(</span><em>y</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.set_ydata" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the data np.array for y</p>
<p>ACCEPTS: 1D array</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.Line2D.update_from">
<tt class="descname">update_from</tt><span class="sig-paren">(</span><em>other</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.Line2D.update_from" title="Permalink to this definition">¶</a></dt>
<dd><p>copy properties from other to self</p>
</dd></dl>
<dl class="attribute">
<dt id="matplotlib.lines.Line2D.validCap">
<tt class="descname">validCap</tt><em class="property"> = (u'butt', u'round', u'projecting')</em><a class="headerlink" href="#matplotlib.lines.Line2D.validCap" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="matplotlib.lines.Line2D.validJoin">
<tt class="descname">validJoin</tt><em class="property"> = (u'miter', u'round', u'bevel')</em><a class="headerlink" href="#matplotlib.lines.Line2D.validJoin" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="matplotlib.lines.Line2D.zorder">
<tt class="descname">zorder</tt><em class="property"> = 2</em><a class="headerlink" href="#matplotlib.lines.Line2D.zorder" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dl class="class">
<dt id="matplotlib.lines.VertexSelector">
<em class="property">class </em><tt class="descclassname">matplotlib.lines.</tt><tt class="descname">VertexSelector</tt><span class="sig-paren">(</span><em>line</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.VertexSelector" title="Permalink to this definition">¶</a></dt>
<dd><p>Manage the callbacks to maintain a list of selected vertices for
<a class="reference internal" href="#matplotlib.lines.Line2D" title="matplotlib.lines.Line2D"><tt class="xref py py-class docutils literal"><span class="pre">matplotlib.lines.Line2D</span></tt></a>. Derived classes should override
<a class="reference internal" href="#matplotlib.lines.VertexSelector.process_selected" title="matplotlib.lines.VertexSelector.process_selected"><tt class="xref py py-meth docutils literal"><span class="pre">process_selected()</span></tt></a> to do
something with the picks.</p>
<p>Here is an example which highlights the selected verts with red
circles:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="kn">import</span> <span class="nn">numpy</span> <span class="kn">as</span> <span class="nn">np</span>
<span class="kn">import</span> <span class="nn">matplotlib.pyplot</span> <span class="kn">as</span> <span class="nn">plt</span>
<span class="kn">import</span> <span class="nn">matplotlib.lines</span> <span class="kn">as</span> <span class="nn">lines</span>
<span class="k">class</span> <span class="nc">HighlightSelected</span><span class="p">(</span><span class="n">lines</span><span class="o">.</span><span class="n">VertexSelector</span><span class="p">):</span>
<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">line</span><span class="p">,</span> <span class="n">fmt</span><span class="o">=</span><span class="s">'ro'</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
<span class="n">lines</span><span class="o">.</span><span class="n">VertexSelector</span><span class="o">.</span><span class="n">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">line</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">markers</span><span class="p">,</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">axes</span><span class="o">.</span><span class="n">plot</span><span class="p">([],</span> <span class="p">[],</span> <span class="n">fmt</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
<span class="k">def</span> <span class="nf">process_selected</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">ind</span><span class="p">,</span> <span class="n">xs</span><span class="p">,</span> <span class="n">ys</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">markers</span><span class="o">.</span><span class="n">set_data</span><span class="p">(</span><span class="n">xs</span><span class="p">,</span> <span class="n">ys</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">canvas</span><span class="o">.</span><span class="n">draw</span><span class="p">()</span>
<span class="n">fig</span> <span class="o">=</span> <span class="n">plt</span><span class="o">.</span><span class="n">figure</span><span class="p">()</span>
<span class="n">ax</span> <span class="o">=</span> <span class="n">fig</span><span class="o">.</span><span class="n">add_subplot</span><span class="p">(</span><span class="mi">111</span><span class="p">)</span>
<span class="n">x</span><span class="p">,</span> <span class="n">y</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">random</span><span class="o">.</span><span class="n">rand</span><span class="p">(</span><span class="mi">2</span><span class="p">,</span> <span class="mi">30</span><span class="p">)</span>
<span class="n">line</span><span class="p">,</span> <span class="o">=</span> <span class="n">ax</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">,</span> <span class="s">'bs-'</span><span class="p">,</span> <span class="n">picker</span><span class="o">=</span><span class="mi">5</span><span class="p">)</span>
<span class="n">selector</span> <span class="o">=</span> <span class="n">HighlightSelected</span><span class="p">(</span><span class="n">line</span><span class="p">)</span>
<span class="n">plt</span><span class="o">.</span><span class="n">show</span><span class="p">()</span>
</pre></div>
</div>
<p>Initialize the class with a <a class="reference internal" href="#matplotlib.lines.Line2D" title="matplotlib.lines.Line2D"><tt class="xref py py-class docutils literal"><span class="pre">matplotlib.lines.Line2D</span></tt></a>
instance. The line should already be added to some
<a class="reference internal" href="axes_api.html#matplotlib.axes.Axes" title="matplotlib.axes.Axes"><tt class="xref py py-class docutils literal"><span class="pre">matplotlib.axes.Axes</span></tt></a> instance and should have the
picker property set.</p>
<dl class="method">
<dt id="matplotlib.lines.VertexSelector.onpick">
<tt class="descname">onpick</tt><span class="sig-paren">(</span><em>event</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.VertexSelector.onpick" title="Permalink to this definition">¶</a></dt>
<dd><p>When the line is picked, update the set of selected indicies.</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.lines.VertexSelector.process_selected">
<tt class="descname">process_selected</tt><span class="sig-paren">(</span><em>ind</em>, <em>xs</em>, <em>ys</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.VertexSelector.process_selected" title="Permalink to this definition">¶</a></dt>
<dd><p>Default “do nothing” implementation of the
<a class="reference internal" href="#matplotlib.lines.VertexSelector.process_selected" title="matplotlib.lines.VertexSelector.process_selected"><tt class="xref py py-meth docutils literal"><span class="pre">process_selected()</span></tt></a> method.</p>
<p><em>ind</em> are the indices of the selected vertices. <em>xs</em> and <em>ys</em>
are the coordinates of the selected vertices.</p>
</dd></dl>
</dd></dl>
<dl class="function">
<dt id="matplotlib.lines.segment_hits">
<tt class="descclassname">matplotlib.lines.</tt><tt class="descname">segment_hits</tt><span class="sig-paren">(</span><em>cx</em>, <em>cy</em>, <em>x</em>, <em>y</em>, <em>radius</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.lines.segment_hits" title="Permalink to this definition">¶</a></dt>
<dd><p>Determine if any line segments are within radius of a
point. Returns the list of line segments that are within that
radius.</p>
</dd></dl>
</div>
</div>
</div>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer">
© Copyright 2002 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the matplotlib development team; 2012 - 2014 The matplotlib development team.
Last updated on Sep 02, 2014.
Created using <a
href="http://sphinx-doc.org/">Sphinx</a> 1.3a0.
</div>
</body>
</html>