Skip to content

Add a quick example in the quickstart section of the README file? #2364

Closed

Description

@seisman

Currently, the Quickstart section in the README file only have one subsection with quick installation instructions. I think a real quickstart section should also have a simple working example so that users have a quick idea about how PyGMT works. So I propose to add a simple example in the quickstart section, like:

import pygmt
fig = pygmt.Figure()
fig.coast(projection="H10c", region="g", frame=True, land="gray")
fig.show()

Activity

  1. added
    question
    on Feb 13, 2023
  2. yvonnefroehlich commented on Feb 13, 2023

    @yvonnefroehlich
    Member

    I think such a subsection makes sense and is an improvement.
    Maybe we can call it "Getting started"? Maybe we should also mention the gallery and tutorials regarding more examples, even both are already mentioned at the top of the README? Something like this using the code example by @seisman:

    Getting started

    import pygmt
    fig = pygmt.Figure()
    fig.coast(projection="H10c", region="g", frame=True, land="gray")
    fig.show()

    For more examples, please have a look at the PyGMT Gallery and Tutorials.

  3. added
    documentation
    and removed
    question
    on Feb 16, 2023
  4. added this to the 0.9.0 milestone on Feb 16, 2023
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

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions