Skip to content

Commit bba9f93

Browse files
committed
update gem for new daru version
1 parent 44957c3 commit bba9f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/gnuplotrb/staff/dataset.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def init_dblock(data, options)
249249
# Create new value for 'using' option based on column count
250250
def get_daru_columns(data, cnt)
251251
new_opt = (2..cnt).to_a.join(':')
252-
if data.index[0].is_a?(DateTime) || data.index[0].is_a?(Numeric)
252+
if data.index.key(0).is_a?(DateTime) || data.index.key(0).is_a?(Numeric)
253253
"1:#{new_opt}"
254254
else
255255
"#{new_opt}:xtic(1)"

0 commit comments

Comments
 (0)