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 9bcfdaa commit e5d0923Copy full SHA for e5d0923
lib/gnuplotrb/plot.rb
@@ -159,14 +159,16 @@ def add_datasets(*datasets)
159
alias_method :add_dataset, :add_datasets
160
alias_method :<<, :add_datasets
161
162
- def add_datasets(*datasets)
+ def add_datasets!(*datasets)
163
datasets.map! { |ds| ds.is_a?(Numeric) ? ds : dataset_from_any(ds) }
164
# first element is position where to add datasets
165
datasets.unshift(0) unless datasets[0].is_a?(Numeric)
166
@datasets = @datasets.insert(*datasets)
167
self
168
end
169
170
+ alias_method :add_dataset!, :add_datasets!
171
+
172
##
173
# ====== Overview
174
# Create new Plot object where dataset at given position
0 commit comments