Use keyword arg for count

This commit is contained in:
kojix2 2020-10-10 23:21:55 +09:00
parent de33805c56
commit 943d4e6c44
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ module Uplot
when :bar, :barplot
Plot.barplot(data, params)
when :count, :c
Plot.barplot(data, params, count = true)
Plot.barplot(data, params, count: true)
when :hist, :histogram
Plot.histogram(data, params)
when :line, :lineplot

View File

@ -7,7 +7,7 @@ module Uplot
module Plot
module_function
def barplot(data, params, count = false)
def barplot(data, params, count: false)
headers = data.headers
series = data.series
if count