Skip to content

Commit 6fc7fcf

Browse files
committed
use 'gp.set output:..'
1 parent 80846cb commit 6fc7fcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/numo/gnuplot.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def to_iruby
4242
gp = Gnuplot.default
4343
gp.reset
4444
gp.set terminal:'svg'
45+
gp.set output:tempfile_svg.path
4546
gp.instance_eval(&@block)
46-
gp.output tempfile_svg.path
4747
gp.unset 'output'
4848
svg = File.read(tempfile_svg.path)
4949
tempfile_svg.close

0 commit comments

Comments
 (0)