matplotlib.axes.Axes.clabel   Axes.clabel(CS, levels=None, **kwargs)[source]
 
Label a contour plot. Adds labels to line contours in given ContourSet.    
Parameters:

 
CSContourSet instance


Line contours to label.  
levelsarray-like, optional


A list of level values, that should be labeled. The list must be a subset of CS.levels. If not given, all levels are labeled.  **kwargs

All other parameters are documented in clabel.      
 Examples using matplotlib.axes.Axes.clabel
 
  Contour Demo  

  Contour Label Demo  

  Contourf Demo  

  Contouring the solution space of optimizations  

  Patheffect Demo  

  TickedStroke patheffect  

  Demonstrates plotting contour (level) curves in 3D  

  Demonstrates plotting contour (level) curves in 3D using the extend3d option  

  Filled contours  


    
{'path': 'public/docs/matplotlib~3.4/_as_gen/matplotlib.axes.axes.clabel.html', 'source': 'DevDocs.IO'}