Skip to content

Commit

Permalink
Fix ridgeline example (#3082)
Browse files Browse the repository at this point in the history
* Fix differences in method-based example. It now renders the same as the one based on the arguments syntax

* Left-align labels
  • Loading branch information
binste authored Jun 10, 2023
1 parent 8bee779 commit 597cd31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/examples_arguments_syntax/ridgeline_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
row=alt.Row(
'Month:T',
title=None,
header=alt.Header(labelAngle=0, labelAlign='right', format='%B')
header=alt.Header(labelAngle=0, labelAlign='left', format='%B')
)
).properties(
title='Seattle Weather',
Expand Down
6 changes: 3 additions & 3 deletions tests/examples_methods_syntax/ridgeline_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
strokeWidth=0.5
).encode(
alt.X('bin_min:Q')
.bin(True)
.bin('binned')
.title('Maximum Daily Temperature (C)'),
alt.Y('value:Q')
.axis(None)
Expand All @@ -44,9 +44,9 @@
.legend(None)
.scale(domain=[30, 5], scheme='redyellowblue')
).facet(
alt.Row('Month:T')
row=alt.Row('Month:T')
.title(None)
.header(labelAngle=0, labelAlign='right', format='%B')
.header(labelAngle=0, labelAlign='left', format='%B')
).properties(
title='Seattle Weather',
bounds='flush'
Expand Down

0 comments on commit 597cd31

Please sign in to comment.