8000 Merge pull request #11 from icm7216/Fix-animation-gif-error · ruby-numo/numo-gnuplot@f5a8a6d · GitHub
[go: up one dir, main page]

Skip to content

Commit f5a8a6d

Browse files
authored
Merge pull request #11 from icm7216/Fix-animation-gif-error
allows to "End of animation sequence" message
2 parents 6fc7fcf + 582b903 commit f5a8a6d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/numo/gnuplot.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ def to_s
290290
def run(s,data=nil)
291291
res = send_cmd(s,data)
292292
if !res.empty?
293+
if /.*?End\sof\sanimation\ssequence.*?/im =~ res.to_s
294+
return nil
295+
end
293296
if res.size < 7
294297
if res.all?{|x| /^\s*(line \d+: )?warning:/i =~ x}
295298
$stderr.puts res.join.strip

0 commit comments

Comments
 (0)
0