Skip to content

Commit

Permalink
plots: Add parameters for specifying an explicit order on the hue/row…
Browse files Browse the repository at this point in the history
…/column

value set
  • Loading branch information
hagau committed Jan 22, 2025
1 parent 6e1332d commit 907fe67
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ def __init__(self, dataset_name:str
, hue:str = None
, style:str = None
, size:str = None
, hue_order:list = None
, col_order:list = None
, row_order:list = None
, matplotlib_backend:str = 'agg'
, context:str = 'paper'
, axes_style:str = 'dark'
Expand Down Expand Up @@ -323,6 +326,10 @@ def __init__(self, dataset_name:str
self.style = style if style != '' else None
self.size = size if size != '' else None

self.hue_order = hue_order if hue_order != '' else None
self.col_order = col_order if col_order != '' else None
self.row_order = row_order if row_order != '' else None

self.xticks = xticks
self.xticks_minor = xticks_minor
self.yticks = yticks
Expand Down

0 comments on commit 907fe67

Please sign in to comment.