Skip to content

Commit 5b1e33a

Browse files
committed
Add note on set_color_codes to release notes
1 parent 38246f3 commit 5b1e33a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/releases/v0.6.0.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ Other additions
6767

6868
- You can now pass an integer to the ``xticklabels`` and ``yticklabels`` parameter of :func:`heatmap` (and, by extension, :func:`clustermap`). This will make the plot use the ticklabels inferred from the data, but only plot every ``n`` label, where ``n`` is the number you pass. This can help when visualizing larger matrices with some sensible ordering to the rows or columns of the dataframe.
6969

70+
- Added the :func:`set_color_codes` function and the ``color_codes`` argument to :func:`set` and :func:`set_palette`. This changes the interpretation of shorthand color codes (i.e. "b", "g", k", etc.) within matplotlib to use the values from one of the named seaborn palettes (i.e. "deep", "muted", etc.). That makes it easier to have a more uniform look when using matplotlib functions directly with seaborn imported. This could be disruptive to existing plots, so it does not happen by default. It is possible this could change in the future.
71+
7072
- Added the ``as_hex`` method to color palette objects, to return a list of hex codes rather than rgb tuples.
7173

7274
Bug fixes

0 commit comments

Comments
 (0)