@@ -744,25 +744,26 @@ class ContourSet(cm.ScalarMappable, ContourLabeler):
744
744
745
745
User-callable method: clabel
746
746
747
- Useful attributes:
748
- ax:
749
- The axes object in which the contours are drawn
747
+ Attributes
748
+ ----------
749
+ ax:
750
+ The axes object in which the contours are drawn.
750
751
751
- collections:
752
- a silent_list of LineCollections or PolyCollections
752
+ collections:
753
+ A silent_list of LineCollections or PolyCollections.
753
754
754
- levels:
755
- contour levels
755
+ levels:
756
+ Contour levels.
756
757
757
- layers:
758
- same as levels for line contours; half-way between
758
+ layers:
759
+ Same as levels for line contours; half-way between
759
760
levels for filled contours. See :meth:`_process_colors`.
760
761
"""
761
762
762
763
def __init__ (self , ax , * args , ** kwargs ):
763
764
"""
764
765
Draw contour lines or filled regions, depending on
765
- whether keyword arg ' filled' is * False* (default) or * True* .
766
+ whether keyword arg * filled* is `` False`` (default) or `` True`` .
766
767
767
768
The first three arguments must be:
768
769
@@ -775,26 +776,25 @@ def __init__(self, ax, *args, **kwargs):
775
776
*allsegs*: [level0segs, level1segs, ...]
776
777
List of all the polygon segments for all the *levels*.
777
778
For contour lines ``len(allsegs) == len(levels)``, and for
778
- filled contour regions ``len(allsegs) = len(levels)-1``.
779
-
780
- level0segs = [polygon0, polygon1, ...]
779
+ filled contour regions ``len(allsegs) = len(levels)-1``. The lists
780
+ should look like::
781
781
782
- polygon0 = array_like [[x0,y0], [x1,y1], ...]
782
+ level0segs = [polygon0, polygon1, ...]
783
+ polygon0 = array_like [[x0,y0], [x1,y1], ...]
783
784
784
785
*allkinds*: *None* or [level0kinds, level1kinds, ...]
785
786
Optional list of all the polygon vertex kinds (code types), as
786
- described and used in Path. This is used to allow multiply-
787
+ described and used in Path. This is used to allow multiply-
787
788
connected paths such as holes within filled polygons.
788
- If not *None*, len(allkinds) == len(allsegs).
789
-
790
- level0kinds = [polygon0kinds, ...]
791
-
792
- polygon0kinds = [vertexcode0, vertexcode1, ...]
789
+ If not ``None``, ``len(allkinds) == len(allsegs)``. The lists
790
+ should look like::
793
791
794
- If *allkinds* is not *None*, usually all polygons for a particular
795
- contour level are grouped together so that
792
+ level0kinds = [polygon0kinds, ...]
793
+ polygon0kinds = [vertexcode0, vertexcode1, ...]
796
794
797
- level0segs = [polygon0] and level0kinds = [polygon0kinds].
795
+ If *allkinds* is not ``None``, usually all polygons for a
796
+ particular contour level are grouped together so that
797
+ ``level0segs = [polygon0]`` and ``level0kinds = [polygon0kinds]``.
798
798
799
799
Keyword arguments are as described in
800
800
:attr:`matplotlib.contour.QuadContourSet.contour_doc`.
@@ -1407,19 +1407,20 @@ class QuadContourSet(ContourSet):
1407
1407
1408
1408
User-callable method: :meth:`clabel`
1409
1409
1410
- Useful attributes:
1411
- ax:
1412
- The axes object in which the contours are drawn
1410
+ Attributes
1411
+ ----------
1412
+ ax:
1413
+ The axes object in which the contours are drawn.
1413
1414
1414
- collections:
1415
- A silent_list of LineCollections or PolyCollections
1415
+ collections:
1416
+ A silent_list of LineCollections or PolyCollections.
1416
1417
1417
- levels:
1418
- Contour levels
1418
+ levels:
1419
+ Contour levels.
1419
1420
1420
- layers:
1421
+ layers:
1421
1422
Same as levels for line contours; half-way between
1422
- levels for filled contours. See :meth:`_process_colors` method.
1423
+ levels for filled contours. See :meth:`_process_colors` method.
1423
1424
"""
1424
1425
1425
1426
def _process_args (self , * args , ** kwargs ):
0 commit comments