Skip to content

Alignment option for GLTextItem#3314

Merged
j9ac9k merged 1 commit intopyqtgraph:masterfrom
swvanbuuren:swvanbuuren/gltextitem-alignment
Nov 15, 2025
Merged

Alignment option for GLTextItem#3314
j9ac9k merged 1 commit intopyqtgraph:masterfrom
swvanbuuren:swvanbuuren/gltextitem-alignment

Conversation

@swvanbuuren
Copy link
Copy Markdown
Contributor

@swvanbuuren swvanbuuren commented May 28, 2025

This commit adds the option for aligning GLTextItem instances. Alignment is set using a new input argument in the form of a QtCore.Qt.AlignmentFlag. The corresponding GLTextItem example has been updated to also demonstrate the alignment feature.

I plan to also contribute 3D grid axes (as demonstrated in the showcase section), which requires this feature.

EDIT: To illustrate this a bit more; here's a screenshot of the GLTextItem example's output

image

@swvanbuuren swvanbuuren force-pushed the swvanbuuren/gltextitem-alignment branch 2 times, most recently from fe731f2 to f50005c Compare May 28, 2025 18:06
This commit adds the option for aligning GLTextItem instances. Alignment is set
using a new input argument in the form of a QtCore.Qt.AlignmentFlag. The
corresponding GLTextItem example has been updated to also demonstrate the
alignment feature.

Signed-off-by: Sietze van Buuren <s.van.buuren@gmail.com>
@swvanbuuren swvanbuuren force-pushed the swvanbuuren/gltextitem-alignment branch from f50005c to 7b4934f Compare June 29, 2025 08:35
@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Nov 15, 2025

Thanks for the PR @swvanbuuren it's good to see the 3D plots getting some attention! Diff LGTM, merging.

@j9ac9k j9ac9k merged commit 3369377 into pyqtgraph:master Nov 15, 2025
36 checks passed
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