radis.misc.plot moduleΒΆ
Created on Sat May 1 13:50:36 2021
@author: erwan
- fix_style(plotlib='config-default', context='config-default', style='config-default', *args, **kwargs)[source]ΒΆ
A posteriori improvement of the last figure generated
Effective when
plotlib
is publib- Parameters:
plotlib (
"publib"
,"seaborn"
,"matplotlib"
) β publib ,seaborn
,matplotlib
context (
"poster"
,"talk"
,"paper"
,"notebook"
) β Seeseaborn.set_theme()
style (a
publib
ormatplotlib
style, or aseaborn
theme) β if"oring"
, use your current defaults. if"none"
, use your current defaults.
Examples
See also
publib.main.fix_style()
- set_style(plotlib='config-default', context='config-default', style='config-default')[source]ΒΆ
Set styles used by Radis plot functions (
plot()
,plot_diff()
,plot_slit()
, etc.)- Parameters:
plotlib (
"publib"
,"seaborn"
,"matplotlib"
) β publib ,seaborn
,matplotlib
context (
"poster"
,"talk"
,"paper"
,"notebook"
) β Seeseaborn.set_theme()
style (a
publib
ormatplotlib
style, or aseaborn
theme) β if"oring"
, use your current defaults. if"none"
, use your current defaults.
Examples
See also
seaborn.set_theme()
,publib.main.set_style()
- split_and_plot_by_parts(w, I, *args, **kwargs)[source]ΒΆ
Plot two discontinued arrays (typically a spectrum) without showing junctions: first identify junctions then split and plot separately.
Useful for plotting an experimental spectrum defined on different, non overlapping ranges without showing connecting lines between the ranges, or to plot an experimental spectrum defined on overlapping ranges, without showing connecting lines neither.
- Parameters:
w, I (arrays) β typically output of
hstack()
.- Other Parameters:
split_threshold (int) β number of standard deviation for threshold. Default 10
ax (matplotlib axe) β plot on a particular axe
kwargs (dict) β forwarded to
plot()
cutwings (int) β discard elements on the side. Default 0
- Return type:
ax.plot