We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44957c3 commit bba9f93Copy full SHA for bba9f93
lib/gnuplotrb/staff/dataset.rb
@@ -249,7 +249,7 @@ def init_dblock(data, options)
249
# Create new value for 'using' option based on column count
250
def get_daru_columns(data, cnt)
251
new_opt = (2..cnt).to_a.join(':')
252
- if data.index[0].is_a?(DateTime) || data.index[0].is_a?(Numeric)
+ if data.index.key(0).is_a?(DateTime) || data.index.key(0).is_a?(Numeric)
253
"1:#{new_opt}"
254
else
255
"#{new_opt}:xtic(1)"
0 commit comments