map scale background box not adjusted properly
|Target version:||Candidate for next minor release|
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
#3 Updated by Paul almost 3 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.