Skip to content
Snippets Groups Projects
Commit bf78b7a0 authored by Peter Lünenschloß's avatar Peter Lünenschloß
Browse files

Merge branch 'plotInHistory' into cookBux

parents 66da1516 27e87a17
No related branches found
No related tags found
7 merge requests!685Release 2.4,!684Release 2.4,!567Release 2.2.1,!566Release 2.2,!501Release 2.1,!372fix doctest snippets,!369Current documentation
Pipeline #47193 passed with warnings with stages
in 4 minutes and 50 seconds
......@@ -349,8 +349,6 @@ def plot(
if to_mask < np.inf:
data = data.copy()
data.loc[flags[field] >= to_mask, field] = np.nan
if level <= to_mask:
history = None
if store_kwargs is None:
store_kwargs = {}
......
......@@ -141,7 +141,7 @@ def makeFig(
d = d[~na_mask]
# insert nans between values mutually spaced > max_gap
if max_gap:
if max_gap and not d.empty:
d = _insertBlockingNaNs(d, max_gap)
# figure composition
......@@ -229,6 +229,11 @@ def _plotVarWithFlags(
if ~(flags_i >= level).any():
continue
# Also skip plot, if all flagged values are np.nans (to catch flag missing and masked results mainly)
temp_i = datser.index.join(flags_i.index, how="inner")
if datser[temp_i][flags_i[temp_i].notna()].isna().all():
continue
scatter_kwargs.update(
{"color": next(color_cycle), "marker": next(shape_cycle)}
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment