-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix #2] Avoid crash while ploting a variable whose min and max are e…
…qual
- Loading branch information
Showing
1 changed file
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this only works if min_value and max_value are equal to 0, but not with other float numbers. A better condition would be:
if abs(max_value - min_value) < EPS_VALUE: