pslegend gets confused by -B in specfile for color bar and -B in command
|Target version:||Candidate for next bugfix release|
When giving a -B for the color bar in the optional arguments part of B cptname offset height [ optional arguments ] in the specfile fed into pslegend, GMT will complain if a -B (map boundary frame and axes attributes) also is given in the executed pslegend command (exception: does not complain if -B0). Then, the -B given in the executed pslegend command overrides the one specified in the specfile and applied to both color bar and map boundary frame.
Lower: -B given in specfile for color bar (-Ba1000f100g500) is ignored, and GMT uses the -B supplied in pslegend command (-Ba10f5g2) for both color bar and map boundary. GMT complains psscale: Warning: Axis sub-item <a,f,g> set more than once (typo?)
Middle: Same as above, but -B0 (just plot frame) given is pslegend command - color bar looks good. GMT does not complain.
Upper: pslegend command has no -B. Color bar is plotted as expected. GMT does not complain.
So sorry for the awkward plot.
Tested with GMT 5.3.2
#1 Updated by Paul about 2 years ago
- Status changed from New to In Progress
- Assignee set to Paul
- Target version set to Candidate for next bugfix release
Thanks, I have added a new pslegend test script based on yours that currently fails so we will be reminded. The workaround is to plot the map frame with psbasemap and save the -B for the CPT in pslegend.