Skip to content

Commit 0030236

Browse files
committed
Fix barplot to preserve custom xscale label transformation
1 parent 09d480b commit 0030236

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/unicode_plot/interface/barplot.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module UnicodePlot
4747
formatter: fmt, xscale: xscale
4848
)
4949

50-
xlab = transform_name(xscale.is_a?(Symbol) ? xscale.as(Symbol) : :identity, xlabel)
50+
xlab = transform_name(xscale, xlabel)
5151
plot = Plot.new(area,
5252
border: border, title: title, xlabel: xlab,
5353
margin: margin, padding: padding,

0 commit comments

Comments
 (0)