Skip to content

Commit

Permalink
Merge branch 'main' into refactor/data-kind
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman authored Jul 20, 2024
2 parents c522e36 + d3101f3 commit 0bde17d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/gallery/symbols/points_categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
color-coded by categories. In the example below, we show how the
`Palmer Penguins dataset <https://github.com/allisonhorst/palmerpenguins>`__
can be visualized. Here, we can pass the individual categories included in
the "species" column directly to the ``color`` parameter via
``color=df.species.cat.codes.astype(int)``. Additionally, we have to set
the "species" column directly to the ``fill`` parameter via
``fill=df.species.cat.codes.astype(int)``. Additionally, we have to set
``cmap=True``. A desired colormap can be selected via the :func:`pygmt.makecpt`
function.
"""
Expand Down

0 comments on commit 0bde17d

Please sign in to comment.