|
| | __init__ (self, cmap, num_stripes=8) |
| | create_artists (self, legend, orig_handle, xdescent, ydescent, width, height, fontsize, trans) |
Legend handler that draws a horizontal colormap gradient swatch.
Definition at line 20 of file legend.py.
◆ __init__()
| shamrock.matplotlib.legend.HandlerColormapLine.__init__ |
( |
| self, |
|
|
| cmap, |
|
|
| num_stripes = 8 ) |
◆ create_artists()
| shamrock.matplotlib.legend.HandlerColormapLine.create_artists |
( |
| self, |
|
|
| legend, |
|
|
| orig_handle, |
|
|
| xdescent, |
|
|
| ydescent, |
|
|
| width, |
|
|
| height, |
|
|
| fontsize, |
|
|
| trans ) |
◆ cmap
| shamrock.matplotlib.legend.HandlerColormapLine.cmap = cmap |
◆ num_stripes
| shamrock.matplotlib.legend.HandlerColormapLine.num_stripes = num_stripes |
The documentation for this class was generated from the following file: