Skip to content

Commit 7ee839e

Browse files
committed
feat(theme): accept per-side strip_text themeable kwargs
Add strip_text_x_top/_bottom and strip_text_y_left/_right as theme() keyword arguments so the per-side strip_text themeables can be set directly (their classes and targets already existed). Also list the per-side themeables (axis line/text/ticks/title sides, strip_placement, and per-side strip_text) in the quartodoc API reference.
1 parent 6e6fbbb commit 7ee839e

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

doc/_quartodoc.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,10 +402,18 @@ quartodoc:
402402
- aspect_ratio
403403
- axis_line
404404
- axis_line_x
405+
- axis_line_x_bottom
406+
- axis_line_x_top
405407
- axis_line_y
408+
- axis_line_y_left
409+
- axis_line_y_right
406410
- axis_text
407411
- axis_text_x
412+
- axis_text_x_bottom
413+
- axis_text_x_top
408414
- axis_text_y
415+
- axis_text_y_left
416+
- axis_text_y_right
409417
- axis_ticks
410418
- axis_ticks_length
411419
- axis_ticks_length_major
@@ -416,15 +424,27 @@ quartodoc:
416424
- axis_ticks_length_minor_y
417425
- axis_ticks_major
418426
- axis_ticks_major_x
427+
- axis_ticks_major_x_bottom
428+
- axis_ticks_major_x_top
419429
- axis_ticks_major_y
430+
- axis_ticks_major_y_left
431+
- axis_ticks_major_y_right
420432
- axis_ticks_minor
421433
- axis_ticks_minor_x
434+
- axis_ticks_minor_x_bottom
435+
- axis_ticks_minor_x_top
422436
- axis_ticks_minor_y
437+
- axis_ticks_minor_y_left
438+
- axis_ticks_minor_y_right
423439
- axis_ticks_x
424440
- axis_ticks_y
425441
- axis_title
426442
- axis_title_x
443+
- axis_title_x_bottom
444+
- axis_title_x_top
427445
- axis_title_y
446+
- axis_title_y_left
447+
- axis_title_y_right
428448
- dpi
429449
- figure_size
430450
- legend_background
@@ -499,9 +519,14 @@ quartodoc:
499519
- strip_background
500520
- strip_background_x
501521
- strip_background_y
522+
- strip_placement
502523
- strip_text
503524
- strip_text_x
525+
- strip_text_x_bottom
526+
- strip_text_x_top
504527
- strip_text_y
528+
- strip_text_y_left
529+
- strip_text_y_right
505530
- svg_usefonts
506531
- text
507532
- title

plotnine/themes/theme.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,11 @@ def __init__(
137137
plot_footer_position=None,
138138
plot_tag_location=None,
139139
plot_tag_position=None,
140+
strip_text_x_top=None,
141+
strip_text_x_bottom=None,
140142
strip_text_x=None,
143+
strip_text_y_left=None,
144+
strip_text_y_right=None,
141145
strip_text_y=None,
142146
strip_text=None,
143147
title=None,

0 commit comments

Comments
 (0)