Skip to content

Fix grdview Qt backend behavior with -Qt in 3-D views - #8857

Merged
Esteban82 merged 2 commits into
masterfrom
Add-grdview_Qt-option
Jan 6, 2026
Merged

Esteban82 merged 2 commits into
masterfrom
Add-grdview_Qt-option

Conversation

@Esteban82

Copy link
Copy Markdown
Member

Description

When running the script below, the following error is triggered:

grdview [ERROR]: Categorical data (as implied by CPT) cannot be interpolated and require -T or just -Qm.
This PR adds an exception that allows using -Qt with categorical CPTs when grdview is run with a 3-D projection (-JZ).

Full script:

gmt begin ex05_3d png
 	gmt makecpt -Ccategorical -T0/4/1 -F+cOceanic,Land,Lakes,Islands,Ponds
	gmt grdview @earth_relief -G@earth_mask -JM15c -JZ5c -B -Bza -BSEwnZ -N-500+gwhite -R-58/-54/-36/-32/-500/500 -p120/30 -C -Qt100i
gmt end

See details and the expected output figure in #8855 (comment)

@Esteban82
Esteban82 requested a review from joa-quim January 6, 2026 13:20
@Esteban82 Esteban82 self-assigned this Jan 6, 2026

@joa-quim joa-quim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Our CI tests are in a miserable state. Each day they fail for a different reason.

@Esteban82

Copy link
Copy Markdown
Member Author

Our CI tests are in a miserable state. Each day they fail for a different reason.

Ok, I will merge it.

@Esteban82
Esteban82 merged commit 17610ee into master Jan 6, 2026
8 of 13 checks passed
@Esteban82
Esteban82 deleted the Add-grdview_Qt-option branch January 6, 2026 13:51
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