Skip to content

Conversation

@seisman
Copy link
Member

@seisman seisman commented Sep 9, 2025

The documentation says the default DPI for patterns is 1200, but actually it's 300 from the source code:

#define PSL_DOTS_PER_INCH_PATTERN 300.0 /* Effective dots per inch resolution for a bitmap pattern -Gp */

I believe it's a typo which can be dated back to even GMT 5.4 (https://docs.generic-mapping-tools.org/5.4/GMT_Docs.html#specifying-area-fill-attributes).

Here is a test to verify that the dpi resolution is 300, not 1200:

gmt begin map
    gmt basemap -R0/10/0/10 -JX10c -Baf
    echo 2 5 | gmt plot -Sc2c -Gp10
    echo 5 5 | gmt plot -Sc2c -Gp10+r300
    echo 8 5 | gmt plot -Sc2c -Gp10+r1200
gmt end show
map

@Esteban82 Esteban82 merged commit d5339ae into master Sep 9, 2025
1 check passed
@Esteban82 Esteban82 deleted the doc/typo branch September 9, 2025 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improve documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants