Bug #131

-p perspective doesn't appear to locate correctly when using +w

Added by Ken almost 8 years ago. Updated about 2 years ago.

Status:In ProgressStart date:2012-08-11
Priority:NormalDue date:
Assignee:Remko% Done:


Target version:Candidate for next bugfix release
Affected version:5.4.x-svn Platform:


The -p pseudo perspective continues to confuse me.

Take the following script for example.

# GMT 5 test script for -p perspective.

> $ps

PARAMS="-R0/360/-90/0 -JA0/-90/4c -Bg360a360f360" 
COORDS="-Xc0c -Yc0c" 
#COORDS="-Xa3c -Ya3c" 


gmtset PS_MEDIA a4

declare -a azimuths=(0 45 90 135 225 270 315)

for azimuth in "${azimuths[@]}" 
  psbasemap $PARAMS $COORDS -P $WRITE -p${azimuth}/90+w0/-90 >> $ps
  WRITE="-O -K" 

psbasemap $PARAMS $COORDS -P -O \
  --MAP_GRID_PEN_PRIMARY=thin,blue \
  --MAP_FRAME_PEN=thin,blue \
  --MAP_TICK_PEN_PRIMARY=thin,blue \
  -p180/90+w0/-90 >> $ps

The commands using a non -p180/90 perspective are drawn in a central point on the page, but not where I would expect them. Output attached.

If you uncomment the absolute location -X/-Y, a similar thing happens.

GMT 5.0.1b_r10401, Linux 32 bit.

perspective.png (7.22 KB) Ken, 2012-08-11 23:52


#1 Updated by Anonymous over 5 years ago

Edit: Junk removed.

#2 Updated by Remko almost 5 years ago

  • Assignee set to Remko
  • Target version set to Candidate for next bugfix release
  • Affected version changed from 5.x-dev to 5.2-svn

After many years, this bug is still there. I'll have a look some time after the 5.2 release.

#3 Updated by Paul about 2 years ago

  • Status changed from New to In Progress
  • Affected version changed from 5.2-svn to 5.4.x-svn

I have distilled this down to a two psbasemap test script (psbasemap/poption.sh) that currently fails. Will have a look at this very soon! In r20162.

Also available in: Atom PDF