Tags: FBumann/xarray_plotly
Tags
Bump mkdocstrings[python] in the docs-dependencies group (#23) Bumps the docs-dependencies group with 1 update: [mkdocstrings[python]](https://github.com/mkdocstrings/mkdocstrings). Updates `mkdocstrings[python]` from 1.0.0 to 1.0.1 - [Release notes](https://github.com/mkdocstrings/mkdocstrings/releases) - [Changelog](https://github.com/mkdocstrings/mkdocstrings/blob/main/CHANGELOG.md) - [Commits](mkdocstrings/mkdocstrings@1.0.0...1.0.1) --- updated-dependencies: - dependency-name: mkdocstrings[python] dependency-version: 1.0.1 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: docs-dependencies ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
feat: add _iter_all_traces helper and rewrite manipulation notebook (#18 ) * New helper at line 14: def _iter_all_traces(fig: go.Figure) -> Iterator: """Iterate over all traces in a figure, including animation frames. Yields traces from fig.data first, then from each frame in fig.frames. Useful for applying styling to all traces including those in animations. """ yield from fig.data for frame in fig.frames or []: yield from frame.data Refactored update_traces to use it (simpler now - removed the separate fig.update_traces() call): for trace in _iter_all_traces(fig): if selector is None: trace.update(**kwargs) else: if all(getattr(trace, k, None) == v for k, v in selector.items()): trace.update(**kwargs) The helper can now be reused internally wherever trace iteration including animation frames is needed. * Udpate notebook * Udpate notebook * Udpate notebook * Udpate notebook
PreviousNext