Python library for processing and standardizing carbonate clumped-isotope analyses, from low-level data out of a dual-inlet mass spectrometer to final, “absolute” Δ47, Δ48, and Δ49 values with fully propagated analytical error estimates.
Other
8
stars
3
forks
source link
set default filename for plot_residuals like other plots #9
I need to go back to the various plotting functions, but you're right that they lack consistency. The thing to decide first is what should be the default behavior?
return a matplotlib Figure object by defaut, which means that most aspects of the figure may be modified before displaying/saving it; return None and save to disk with some optional parameter (e.g. output = 'savefig')
return None and save to disk by default; return a Figure object with some optional parameter (e.g. output = 'fig')
In both cases, output = 'ax' could be used to ask for a matplotlib Axes object, which allows including the plot in a larger figure.
Any opinion on the best default behavior? Any change needs to be deliberate because it will (slightly) break backward compatibility.
I need to go back to the various plotting functions, but you're right that they lack consistency. The thing to decide first is what should be the default behavior?
Figure
object by defaut, which means that most aspects of the figure may be modified before displaying/saving it; returnNone
and save to disk with some optional parameter (e.g.output = 'savefig'
)None
and save to disk by default; return aFigure
object with some optional parameter (e.g.output = 'fig'
)In both cases,
output = 'ax'
could be used to ask for a matplotlibAxes
object, which allows including the plot in a larger figure.Any opinion on the best default behavior? Any change needs to be deliberate because it will (slightly) break backward compatibility.