The source project of this merge request has been removed.
Only autoset ylim if not specified
1 unresolved thread
1 unresolved thread
This fixes the behaviour where ylim
is overwritten if specified in the kwargs of plot_noise()
.
Merge request reports
Activity
64 65 65 66 ax.autoscale(enable=True, axis='y', tight=True) 66 67 if ylim: 67 68 ax.set_ylim(ylim) @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...
Please register or sign in to reply