Skip to content

ConflictingSettingsError(first_name, second_name) Source

Bases: NumdaplotError

Raised when two settings that exclude each other are both given.

For example, a ScatterChart colors its points with one color or by the values of color_by.

Added in version 0.1.0

Parameters:

  • first_name (str)

    Name of the first setting.

  • second_name (str)

    Name of the second setting.

Attributes:

  • first_name

    Name of the first setting.

  • second_name

    Name of the second setting.

Examples:

import numdaplot as ndp

try:
    ndp.ScatterChart(x="surface", y="price", color=ndp.Color.RED, color_by="city")
except ndp.ConflictingSettingsError as error:
    print(error)
# color and color_by cannot be given together.