dabestr icon indicating copy to clipboard operation
dabestr copied to clipboard

Fix problem with wrong delta plot y-axis range when using negative y values

Open marsiwiec opened this issue 3 years ago • 3 comments

When y values to be plotted are negative, the rawplot.ylim vector contains negative values, which combined with negative summary_control values give a wrong new.delta.ylim.

Fix involves appropriately reversing this vector when the absolute value of the second element is smaller than the absolute value of the first element (which for ylim vectors happens when both are negative).

marsiwiec avatar Jan 17 '22 20:01 marsiwiec

Turns out my fix misaligns the two vertical axes.

marsiwiec avatar Jan 17 '22 21:01 marsiwiec

Thanks for this; will review and push when I can!

josesho avatar Jan 21 '22 10:01 josesho

Thanks for this; will review and push when I can!

Thanks!

marsiwiec avatar Jan 21 '22 13:01 marsiwiec