Bug #169

map scale background box not adjusted properly

Added by Paul over 4 years ago. Updated about 2 years ago.

Status:ClosedStart date:2012-10-24
Priority:NormalDue date:
Assignee:Paul% Done:

100%

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

Description

From Christian Heine; I'm entering it here so it wont get lost:

When using psbasemap to draw a map scale with bounding box (ie +fwhite+p0.5p,black) the left and right justified labels are plotted outside the map scale frame.

psbasemap -R0/10/0/10 -JM7 -Ba2f2g2:."Label outside box": -Lf2/7/5/250k+l+jr+fwhite+p0.5p,black > test.ps

psbasemap -R0/10/0/10 -JM7 -Ba2f2g2:."Label in box": -Lf2/7/5/250k+l+jt+fwhite+p0.5p,black > test.ps

psbasemap -R0/10/0/10 -JM7 -Ba2f2g2:."Label outside box": -Lf2/7/5/250k+l+jl+fwhite+p0.5p,black > test.ps

Associated revisions

Revision 13939
Added by Paul over 2 years ago

Address issue #169 by introducing -F panel and updating -L, also improve psscale layout

History

#1 Updated by Paul over 4 years ago

  • Status changed from New to In Progress

First we need to do a better job of approximating the shifts due to the left/right unit annotations. If not possible to be accurate, consider adding nudge option like in psscale -T.

#2 Updated by Florian over 3 years ago

  • Target version changed from 5.1.0 to Candidate for next bugfix release

#3 Updated by Paul over 2 years ago

  • Status changed from In Progress to Resolved
  • Target version changed from Candidate for next bugfix release to Candidate for next minor release
  • % Done changed from 0 to 100
  • Affected version changed from 5.x-dev to 5.2-svn

I have rewritten how the map scale layout works in GMT 5.2 (svn) and your examples now work. The syntax has changed but it is backwards compatible. In 5.2, several tools (psimage, pslegend, psscale, gmtlogo, and now psbasemap and soon pscoast) has a new option to draw the background panel. Hence the +g<fill> and +p<fill> in -L are deprecated and should be specified in the new -F option. I have added a test script to ensure these things work. In r13940.

#4 Updated by Remko about 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF