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") – See seaborn.set_theme()

  • style (a publib or matplotlib style, or a seaborn 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") – See seaborn.set_theme()

  • style (a publib or matplotlib style, or a seaborn 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

Returns

Return type

ax.plot