Skip to content

Allow use of GMT_GRAPHICS_FORMAT for one-liners #6508

Closed

Description

@maxrjones

Description of the desired feature

It would be useful to have a way to specify that the output from a modern mode one-liner should be set by GMT_GRAPHICS_FORMAT. For example

gmt basemap -R2000/2020/35/45 -JX12c -Bxa2f+a-30 -BS --GMT_THEME=cookbook -format GMT_-B_slanted

would set the format based on GMT_GRAPHICS_FORMAT. My motivation for this feature request is to help the GMT docs so that the output could be set as PS for our testing purposes but users would get PDF when copying the example code. In addition, this could be useful for anyone who wants to run a suite of one-liners to produce different output formats.

Are you willing to help implement and maintain this feature? Yes

Activity

  1. added
    feature request
    on Mar 30, 2022
  2. PaulWessel commented on Mar 30, 2022

    @PaulWessel
    Contributor

    I guess it is just picking a -name option that we replace under the hood with the default format.

    some possibilities:

    format
    default or def
    plot
    name
    figure
    map
    output or out
    picture
    view

    I like the shorter ones

  3. maxrjones commented on Mar 30, 2022

    @maxrjones
    MemberAuthor

    view seems nice and short.

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

    feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions