[Top][All Lists]

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

Re: Surfaces & pictures

From: inor0627
Subject: Re: Surfaces & pictures
Date: Sun, 17 May 2015 22:35:27 -0700 (PDT)

fbarbuto wrote
> Hi,
> Is there a way to project a picture (a jpg, png, whatever) onto a3-D
> surface plotted with surf()?

Hello Fausto,

In the function reference of surf, an additional color argument is

"Optionally, the color of the surface can be specified independently of z by
supplying a color matrix, c."

So using your (maybe modified) picture as 'c', surf(xx,yy,zz,c) in
combination with an appropriate colormap might do the trick. 

Best regards,

View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

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