The source project of this merge request has been removed.
Only autoset ylim if not specified
1 unresolved thread
1 unresolved thread
Compare changes
+ 2
− 1
@@ -40,7 +40,8 @@ def plot_noise(
@@ -64,7+65,7 @@
@sean-leavey Is this not already handled down here? Wondering why this isn't working...
No because line 43 sets
ylim
even if it wasNone
before. So line 66,if ylim:
, is alwaysTrue
even ifylim
isNone
during the method call.tbh, the logic here was already a bit confusing. Why is
ylim
, a variable that has apparently nothing to do with the 'Total' trace, being set in theif name == 'Total':
block? Seems like a mistaken variable name or something...Because the we wanted to set the default ylim based on the Total trace.
I think your patch is the way to go. I'll merge.