Skip to content

Fix powder pattern plot(hkl=True) when used the first time the plot is shown - #103

Merged
vincefn merged 1 commit into
mainfrom
fix-powder-hkl-plot
Aug 14, 2026
Merged

Fix powder pattern plot(hkl=True) when used the first time the plot is shown#103
vincefn merged 1 commit into
mainfrom
fix-powder-hkl-plot

Conversation

@vincefn

@vincefn vincefn commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Corner-case bugfix: when using matplotlib widget, using plot(hkl=True) for a PowderPattern will not actually display the pattern due to some issue with matplotlib's get_window_extent() (even though the call works and gives good values, somehow the figure is not displayed).

Since this is only used to avoid overlapping hkl labels, this mechanism is just disabled the first time the figure is rendered.

@sbillinge sbillinge left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@vincefn
vincefn merged commit aef33c6 into main Aug 14, 2026
5 checks passed
@vincefn
vincefn deleted the fix-powder-hkl-plot branch August 14, 2026 09:01
vincefn added a commit that referenced this pull request Aug 14, 2026
* main:
  Fix powder pattern plot(hkl=True) when used the first time the plot is shown. (#103)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants