# Ruby and Gnuplot and Windows

**URL:** <https://www.ruby-forum.com/t/ruby-and-gnuplot-and-windows/95611>\
**Category:** Ruby\
**Created:** [June 7, 2006, 12:20pm UTC](https://www.ruby-forum.com/t/ruby-and-gnuplot-and-windows/95611 "2006-06-07T12:20:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [June 7, 2006, 12:20pm UTC](https://www.ruby-forum.com/t/ruby-and-gnuplot-and-windows/95611/1 "2006-06-07T12:20:39Z")

</div>

I want to combine Gnuplot support to an FXRuby application, and  
unfortunately,  
this always crashes with Segfault when I run it in Cygwin, which used to  
be  
my way of running Ruby and indeed anything on Windows…  
So I tried to install the ruby gnuplot gem (v 2.2) using the gem  
installer  
of the one-click  
installer, and tried this test file:

require ‘rubygems’  
require ‘gnuplot’

Gnuplot.open do |gp|  
Gnuplot::Plot.new( gp ) do |plot|

plot.xrange “[-10:10]”  
plot.title “Sin Wave Example”  
plot.ylabel “x”  
plot.xlabel “sin(x)”

plot.data \<\< Gnuplot::DataSet.new( “sin(x)” ) do |ds|  
ds.with = “lines”  
ds.linewidth = 4  
end

end

end

Now, the application starts, but just doesn’t do anything - there is  
no error message or warning, and no output.  
Does anybody use Ruby Gnuplot and the Ruby from the one-click  
installer (latest version) successfully ?

Thanks,

Best regards,

Axel
