Skip to content

Commit

Permalink
Gallery example "Color points by categories": Update "color" to "fill…
Browse files Browse the repository at this point in the history
…" in introduction text (#3340)
  • Loading branch information
yvonnefroehlich authored Jul 20, 2024
1 parent 917b3aa commit d3101f3
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 d3101f3

Please sign in to comment.