psychoinformatics-de / remodnav

Robust Eye Movement Detection for Natural Viewing
Other
59 stars 16 forks source link

BF: prevent conversion of lower y-axis limit to -inf #15

Closed adswa closed 4 years ago

adswa commented 4 years ago

If velocities are plotted in logspace, a lower limit of 0 would be transformed to -inf - which results in a pyplot warning and y-axis limits to be ignored. This sets the default lower limit to 1, warns if it encounteres a lower limit of 0 and sets it to 1 instead.

Fixes #14.

adswa commented 4 years ago

ping @mih because you are not watching this repo.

adswa commented 4 years ago

merging this.

adswa commented 4 years ago

(we need to keep in mind to add this to a changelog in a future release @mih)