Skip to content

Commit f2704f8

Browse files
author
dcherian
committed
Update docs.
1 parent 80fc91a commit f2704f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/plotting.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -646,21 +646,21 @@ You can also set color using the ``hue`` kwarg
646646
647647
When ``hue`` is specified, a colorbar is added for numeric ``hue`` DataArrays by
648648
default and a legend is added for non-numeric ``hue`` DataArrays (as above).
649-
You can force a legend instead of a colorbar using the boolean ``discrete_legend`` kwarg.
649+
You can force a legend instead of a colorbar by setting ``hue_style='discrete'``.
650650

651651
.. ipython:: python
652652
653653
ds.w.values = [1, 2, 3, 5]
654654
@savefig ds_discrete_legend_hue_scatter.png
655-
ds.plot.scatter(x='A', y='B', hue='w')
655+
ds.plot.scatter(x='A', y='B', hue='w', hue_style='discrete')
656656
657657
658658
Faceting is also possible
659659

660660
.. ipython:: python
661661
662662
@savefig ds_facet_scatter.png
663-
ds.plot.scatter(x='A', y='B', col='x', row='z', hue='w', discrete_legend=True)
663+
ds.plot.scatter(x='A', y='B', col='x', row='z', hue='w', hue_style='discrete')
664664
665665
666666
.. _plot-maps:

0 commit comments

Comments
 (0)