You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initially brought up in #432 for the HomogUniv class. As we start forwarding more plot options to the underlying matplotlib plot functions (#417, #423, #422 and friends) there may be a point where we want to rely on users passing drawstyle=<option> rather than our own logic for the step argument.
I propose that by 0.10.0 we support passing steps and drawstyle for the methods that currently support steps. Methods like the sensitivity plotter can have a default drawstyle using kwargs.setdefault("drawstyle", ...).
Instances where both are passed should raise a DeprecationWarning by 0.10.0. Following 0.11.0 we should no longer support the steps argument, instead falling back to the matplotlib drawstyle argument.
Instances where we currently allow steps and additional kwargs should raise a pending deprecation warning by 0.9.4
Extras
Some care should be taken for the spectrum plot and other cases where we perform a line plot with some uncertainties. Here we wish to draw the errorbars in the middle of the bin (#428)
The text was updated successfully, but these errors were encountered:
Initially brought up in #432 for the
HomogUniv
class. As we start forwarding more plot options to the underlying matplotlib plot functions (#417, #423, #422 and friends) there may be a point where we want to rely on users passingdrawstyle=<option>
rather than our own logic for thestep
argument.Some examples
serpent-tools/serpentTools/objects/containers.py
Line 411 in 67dc469
serpent-tools/serpentTools/detectors.py
Lines 561 to 566 in 67dc469
serpent-tools/serpentTools/objects/xsdata.py
Line 363 in 67dc469
serpent-tools/serpentTools/parsers/sensitivity.py
Lines 408 to 409 in 67dc469
Roadmap
I propose that by 0.10.0 we support passing
steps
anddrawstyle
for the methods that currently supportsteps
. Methods like the sensitivity plotter can have a defaultdrawstyle
usingkwargs.setdefault("drawstyle", ...)
.Instances where both are passed should raise a DeprecationWarning by 0.10.0. Following 0.11.0 we should no longer support the
steps
argument, instead falling back to the matplotlibdrawstyle
argument.Instances where we currently allow
steps
and additionalkwargs
should raise a pending deprecation warning by 0.9.4Extras
Some care should be taken for the spectrum plot and other cases where we perform a line plot with some uncertainties. Here we wish to draw the errorbars in the middle of the bin (#428)
The text was updated successfully, but these errors were encountered: