Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shamrock.matplotlib.legend.HandlerColormapLine Class Reference
Inheritance diagram for shamrock.matplotlib.legend.HandlerColormapLine:
Collaboration diagram for shamrock.matplotlib.legend.HandlerColormapLine:

Public Member Functions

 __init__ (self, cmap, num_stripes=8)
 create_artists (self, legend, orig_handle, xdescent, ydescent, width, height, fontsize, trans)

Public Attributes

 cmap = cmap
 num_stripes = num_stripes

Detailed Description

Legend handler that draws a horizontal colormap gradient swatch.

Definition at line 20 of file legend.py.

Constructor & Destructor Documentation

◆ __init__()

shamrock.matplotlib.legend.HandlerColormapLine.__init__ ( self,
cmap,
num_stripes = 8 )

Definition at line 23 of file legend.py.

Member Function Documentation

◆ create_artists()

shamrock.matplotlib.legend.HandlerColormapLine.create_artists ( self,
legend,
orig_handle,
xdescent,
ydescent,
width,
height,
fontsize,
trans )

Definition at line 28 of file legend.py.

Member Data Documentation

◆ cmap

shamrock.matplotlib.legend.HandlerColormapLine.cmap = cmap

Definition at line 24 of file legend.py.

◆ num_stripes

shamrock.matplotlib.legend.HandlerColormapLine.num_stripes = num_stripes

Definition at line 25 of file legend.py.


The documentation for this class was generated from the following file: