Bug #131

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

Added by Ken over 4 years ago. Updated over 1 year ago.

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

0%

Category:-
Target version:Candidate for next bugfix release
Affected version:5.2-svn Platform:

Description

The -p pseudo perspective continues to confuse me.

Take the following script for example.

#!/bin/bash
# GMT 5 test script for -p perspective.

ps="perspective.ps" 
> $ps

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

WRITE="-K" 

gmtset PS_MEDIA a4

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

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

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

History

#1 Updated by Awen almost 2 years ago

Edit: Junk removed.

#2 Updated by Remko over 1 year 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.

Also available in: Atom PDF