Smiley

class floulib.Smiley(smile, color, eye=1.0, label='')

Bases: Plot

Class to plot a smiley.

Note

Smiley is a subclass of Plot, therefore all methods in Plot may be used.

__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()
_images/Smiley.__init__.png