help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave's plotting much slower than matlab


From: David Bateman
Subject: Re: Octave's plotting much slower than matlab
Date: Mon, 21 Jan 2008 20:56:02 +0100
User-agent: Thunderbird 1.5.0.7 (X11/20060921)

Thomas Ilnseher wrote:
> I changed the function to this:
> 
> f=fopen('scatter.txt', 'r');
> [v c] = fscanf(f, '%d', [2, inf]);
> fclose(f);
> %scatter(v(1,:), v(2,:));
> figure(1);
> hold('on');
> legend('off');
> grid('on');
> plot(v(1,:), v(2,:), 'ob');
> 
> now the stuff is even _faster_ than matlab, as I pointed out before.
> the output is roughly the same as with scatter (except that all circles
> have the same  color). by doing some tricks with "hold('on');" and
> sub-ranges, I can even get the same picture as with scatter. 
> 
> I definitely do not need to access specific points as patch objects.
> 
> So I'm fine (and might write myself a fscatter.m file). 
> 

Yes, but then you can't do

colormap cool

or whatever, whereas you can with scatter

D.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]