Skip to content

Commit 02185a0

Browse files
author
Mohammed Sadique
committed
multi databar
1 parent a69f6de commit 02185a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotex/figure/areal/bar_chart.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ defmodule Matplotex.Figure.Areal.BarChart do
168168
@xmin_value |> Nx.linspace(nof_x, n: nof_x) |> Nx.to_list()
169169
end
170170

171-
defp bar_position(x, pos_factor) when pos_factor < 0 do
171+
defp bar_position(x, pos_factor) do
172172
x + pos_factor
173173
end
174174

175-
defp bar_position(x, _pos_factor), do: x
175+
176176

177177
defp list_of_ticks(data, step) do
178178
1..length(data)

0 commit comments

Comments
 (0)