Why do I keep getting a "warning skipping unreadable file" message with Gnuplot when plotting a .dat file I made using Fortran? -


here code

program plotting implicit none real, parameter :: pi = 3.141592 integer, parameter :: n=100 real, dimension(1:n) :: x,y real :: a=0.0, b= 2*pi real :: increment integer::  increment = (b-a)/(real(n)-1)  x(1) = 0.0  =2 , n   x(i) = x(i-1) + increment end  y = sin(x)   open(unit=25, file='sineplot.dat') i=1, n   write(25, *)  x(i), y(i)       end  close (unit=25)  end program 

but when go gnu plot , type in : plot 'sineplot.dat' using 1:2

the following message displays: warning skipping unreadable file "sineplot.dat" no data in plot

i've checked data file , looks correct, thinking problem terminal type, set default 'wxt' don't know if should using problem using windows 8.1.

works me using gnuplot 5.0 , windows 7.

you can try following in command prompt, tried wxt , windows , both work fine me:

gnuplot -p -e "set terminal windows; plot 'sineplot.dat' u 1:2" 

could post sineplot.dat file? separates columns in file ( sorry, don't know fortran). may have use set datafile separator "<sep>" if columns not separated whitespace.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -