Smiley¶
- class floulib.Smiley(smile, color, eye=1.0, label='')¶
Bases:
Plot
Class to plot a smiley.
- __init__(smile, color, eye=1.0, label='')¶
Constructor
- Parameters:
smile (float) – Magnitude of the smile if in [0, 1] or the grimace id in [-1, 0].
color (matplotlib.colors) – Color of the smiley.
eye (float, optional) – Height of the eyes. The default is 1.0.
label (str, optional) – Label associated with the LR fuzzy interval. The default is ‘’.
- Return type:
None.
Example
>>> from floulib import Smiley >>> Smiley(0.8, [0, 1, 0]).plot()