Skip to content

Extract cpt limits from PyGMT cpt instance #204

Description

@mdtanker

Currently when adding a colorbar histogram we try to extract the zmin and zmax values, which doesn't work in certain instances. It would be better to extract the values from the most recently used PyGMT cpt instance.

This would allow create a cpt with pygmt.makecpt but not having to save it to a file, then passing cmap=True to the plotting functions.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions