We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f00f56 commit 653e8b6Copy full SHA for 653e8b6
1 file changed
lib/youplot/backends/unicode_plot.rb
@@ -211,7 +211,10 @@ def check_series_size(data, fmt)
211
# NOTE: Error messages cannot be colored.
212
YouPlot.run_as_executable ? exit(1) : raise(Error)
213
end
214
- if fmt == 'xyxy' && series.size.odd?
+
215
+ # if fmt == 'xyxy' && series.size is odd, the number of series is not even.
216
+ return unless fmt == 'xyxy' && series.size.odd?
217
218
warn <<~EOS
219
YouPlot: In the xyxy format, the number of series must be even.
220
@@ -220,7 +223,6 @@ def check_series_size(data, fmt)
223
EOS
221
224
222
225
- end
226
227
228
0 commit comments