Indeed, you are right. The plot worked when image size was reduced.
But, pray, why this restriction in Octave/gnuplot? Matlab has no such problems.
Thank you so much for the very prompt response.
Best,
KM.
Dr. Krishna Mohan, T. R CSIR Centre for Mathematical Modelling and Computer Simulation (C-MMACS) NAL WTC Road Bangalore 560 037, India Tel: +91-80-2505 1927 Fax: +91-80-2522 0392
On 09-May-2012, at 6:00 PM, Ben Abbott wrote: On May 9, 2012, at 7:31 AM, Dr. Krishna Mohan, T. R wrote: I have a simple m file which plots my data in different shades. When I run this on my Mac Desktop (Lion), I get blank plot windows opening up but no plot appearing. I also get gnu plot general help read me displayed. What is going on? The file in question is:
close all;
clear all;
figure;
%
k2 = 176259;
brghtpar=0.5;
%
s=load('-ascii','binke.dat');
a=s(1:k2,1:100);
cmap=contrast(a);
newmap=brighten(cmap,brghtpar);
imagesc(a)
colormap(newmap)
%
Simple plots are working and, so, Octave and gnu plots are linked up.
KM.
The image you're trying to display is 176259x100 pixels. This is creating a problem for gnuplot (not gnu plot, as gnuplot is not a GNU project). If you reduce the image size by ... a = s(1:100:k2,1:100); ... then it should work. Ben
|