Skip to content

sparkline.py: division by zero #46

Closed
@bablokb

Description

@bablokb

Adding the same value twice triggers a division by zero (autoscale-mode for y). In this case

self.y_bottom = min(self._spark_list)
self.y_top    = max(self._spark_list)

are identical. Both values are passed to _plotline where the division by zero happens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions