|
From: Philipp D. <phi...@we...> - 2015-05-26 11:32:23
|
On 2015-05-26 12:38, Tatsuro MATSUOKA wrote: > ----- Original Message ----- > >> From: Philipp Dijkstal >> To: gnuplot-info >> Cc: >> Date: 2015/5/26, Tue 18:26 >> Subject: [Gnuplot-info] Problem with set range >> >> Dear all, >> >> from the user manual p.174 it seems clear to me that the following input >> should yield the same output. >> >> 1. >> set term pngcairo >> set out 'outfile' >> set yrange [ :6] >> plot 'datafile' u ... >> >> 2. >> set term pngcairo >> set out 'outfile' >> plot [ ] [ :6] 'datafile' u ... >> >> However only the second version works for me. For the first one I get a >> "Segmentation fault (core dumped)" response from bash. >> I use Arch Linux and gnuplot 5.0.0 from the official repository. >> >> I wonder if this is a bug or if I did something wrong. I tried to >> reproduce this error with a simplified data file but the error did not >> occur. >> I would append the gnuplot script and the data file here but I don't >> know if this is allowed for a mailing list. >> >> Thank you in advance, >> Philipp >> > Philipp > > > I cannot say certainly what you met is a bug or not at the moment > because of lack of detailed information. > > However, I have been using many scripts setting the plot range in the > same way as your example 1 on gnuplot on windows, cygwin ans ubuntu > (mainly 5.1 (cvs) built myself) without problems. > > Can you provide a small script that reproduces segmentation fault on your computer? > > Tatsuro > Hello Tatsuro, thank you for your quick reply. When I tried to reproduce the error I found that I had a a comma at the end of the plot command, even though no more input was following. Gnuplot did not complain about it. After I corrected the syntax, both ways to set the y range worked again. I still don't know why the behavior was different but I regard this problem as solved. Philipp |