Skip to content

-B without modifiers/directives no longer works in subplot mode #6100

Closed

Description

@maxrjones

Description of the problem

The following example (based on a failing PyGMT gallery example) worked in GMT 6.2 but no longer works in GMT 6.3. The regression was introduced by #5441. I think it is not a user error, because -B is usually interpreted as -Ba (e.g., gmt grdimage @earth_relief_05m -R0/10/0/10 -B -png test).

Full script that generated the error

gmt begin test2 png
    gmt subplot begin 1x2 -Fs15c/8c -A -M0.5c
    gmt subplot set 0
        gmt grdimage @earth_relief_05m -R0/10/0/10 -B
    gmt subplot set 1
        gmt grdimage @earth_relief_05m -R0/10/0/10 -B
    gmt subplot end
gmt end show

Full error message

grdimage [ERROR]: Option -B parsing failure. Correct syntax:

  -B Specify both (1) basemap frame settings and (2) axes parameters.
     Frame settings are modified via an optional single invocation of -B[<axes>][+b][+g<fill>][+i[<val>]][+n][+o<lon>/<lat>][+s<subtitle>][+t<title>][+w[<pen>]][+x<fill>][+y<fill>]⏎
       …[+z<fill>]
     Axes parameters are specified via one or more invocations of -B[p|s][x|y|z]<intervals>[+a<angle>|n|p][+f][+l|L<label>][+p<prefix>][+s|S<secondary_label>][+u<unit>
     <intervals> is composed of concatenated [<type>]<stride>[l|p] sub-strings. See basemap documentation for more details and examples of all settings.
grdimage [ERROR]: Offending option -B

System information

  • Operating system: macOS
  • GMT version (gmt --version): 6.4dev

Activity

  1. added
    bug
    on Dec 9, 2021
  2. added a commit that references this issue on Dec 11, 2021
    ed4e7ab
  3. added a commit that references this issue on Dec 11, 2021
    2287170
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions