Label a contour plot. Adds labels to line contours in given `.ContourSet`. Parameters ---------- CS : `.ContourSet` instance Line contours to label. levels : array-like, optional A list of level values, that should be labele
(self, CS, levels=None, **kwargs)
| 7169 | return contours |
| 7170 | |
| 7171 | def clabel(self, CS, levels=None, **kwargs): |
| 7172 | """ |
| 7173 | Label a contour plot. |
| 7174 | |
| 7175 | Adds labels to line contours in given `.ContourSet`. |
| 7176 | |
| 7177 | Parameters |
| 7178 | ---------- |
| 7179 | CS : `.ContourSet` instance |
| 7180 | Line contours to label. |
| 7181 | |
| 7182 | levels : array-like, optional |
| 7183 | A list of level values, that should be labeled. The list must be |
| 7184 | a subset of ``CS.levels``. If not given, all levels are labeled. |
| 7185 | |
| 7186 | **kwargs |
| 7187 | All other parameters are documented in `~.ContourLabeler.clabel`. |
| 7188 | """ |
| 7189 | return CS.clabel(levels, **kwargs) |
| 7190 | |
| 7191 | #### Data analysis |
| 7192 |
no outgoing calls