Skip to content

Coloring points by categories #244

@lonnylundsten

Description

@lonnylundsten

Hello,
Thanks for GMT/Python! I am making maps by querying our database for various species and adding points to a basemap -- see attached. I followed the instructions for plotting earthquake magnitude and color coding but that seems to fail with categorical data such as species names. In the attached figure I have a species column in my df with multiple species and I would like to have them plotted as different colored circles on the map. Matplotlib/seaborn etc., allow you to set 'Hue=df.category' for this type of data. Perhaps this could be implemented in gmt-python?
gmt-python-mq0ec2oi

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions