Skip to content

Wrapper for makecpt #214

Closed
Closed

Description

@mlmarius

cpt = gmt.makecpt(C='jet', T=[mag.min(), mag.max()])

AttributeError: module 'gmt' has no attribute 'makecpt'

Python 3.6, GMT 6

  • Operating system:
  • Python installation: system (inside docker container):
  • Version of GMT/Python: 6, 3.6
  • How you installed GMT/Python: Docker image

Apparently the examples shown here: https://www.gmtpython.xyz/latest/design.html#the-gmt-python-api are not working. How do i generate a colorbar and a legend for my plot ? Is there a way to work directly with the gmt modules ?

Activity

  1. leouieda commented on Jul 24, 2018

    @leouieda
    Member

    Hi @mlmarius, the "Design" page was more of a roadmap for us than a tutorial. Sadly, we let it get out of date. We're working on updating the documentation (#201).

    We haven't implemented makecpt yet because there are still some issues with how we're communicating with the C API. Right now, there is no way to call GMT modules directly.

    We'll update this issue when we have makecpt implemented, so you'll get a notification.

  2. changed the title [-]Missing makecpt[/-] [+]Wrapper for makecpt[/+] on Jul 24, 2018
  3. added a commit that references this issue on Sep 28, 2019
  4. added this to the 0.1.0 milestone on Oct 4, 2019
  5. added a commit that references this issue on Oct 10, 2019
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions