From: Nicholas on
That worked for me as well. Thank you!

"Richard Lang" <rlang(a)mathworks.co.uk> wrote in message <9oprga$qe7$1(a)news.mathworks.com>...
> It could be an OpenGL driver implementation issue - I don't see any such
> artifacts here using a Matrox G400 video card. Try issuing the command:
>
> set(gcf,'renderer','zbuffer');
>
> and see what happens. If that is the problem then you could try updating
> the video card driver.
>
> HTH,
> Richard
>
>
> "James Kemp" <jeak100uk(a)yahoo.co.uk> wrote in message
> news:9797cdac.0109250044.19a3be91(a)posting.google.com...
> > Good idea ... but nope that didn't work. As an example :
> >
> > r = rand(100);
> > surf(r);
> > view(2);
> > shading flat;
> >
> > When I save the above script to a .m file and run it I get pretty much
> what
> > you would expect, i.e. a graph 100x100 of random coloured squares. The
> > problem is that some of the pixels (say 1 in 10) have a very narrow white
> line
> > drawn across them (usually bottom left to top right).
> >
> > Setting linestyles to none didn't help. Any other ideas?
> >
> > James,
> >
> > "Ben Hinkle" <bhinkle(a)mathworks.com> wrote in message
> news:<9onfv5$gc6$1(a)news.mathworks.com>...
> > > You want to hide the edges by setting the LineStyle property to none,
> like
> > > so:
> > >
> > > >> h = surf(peaks);
> > > >> view(2)
> > > >> set(h,'linestyle','none');
> > >
> > > hope that helps,
> > > -Ben
> > > bhinkle(a)mathworks.com
> > >
> > > "James Kemp" <jeak100uk(a)yahoo.co.uk> wrote in message
> > > news:9797cdac.0109240505.32040ee7(a)posting.google.com...
> > > > I'm having problems producing a good output with the surf command.
> > > > 'image(data)' produced an okay result, but
> > > >
> > > > 'surf(data)'
> > > > 'view(2)'
> > > >
> > > > produced a similar picture covered in really narrow white lines.
> > > > I've tried all the 'shading' options and played with the palette
> > > > (and caxis). Zooming in on the picture doesn't alter the thickness
> > > > of the lines, so I don't think its part of the image.
> > > >
> > > > The routine works okay on an older machine running ver5.3, I'm
> > > > currently using 6.1. Has the surf command altered? or is it more
> > > > likely hardware. (or am I being a twit).
> > > >
> > > > TIA,
> > > > James
>
>