help-octave
[Top][All Lists]
Advanced

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

Re: setting an image as xy background on a 3-D plot


From: samuel WEBER
Subject: Re: setting an image as xy background on a 3-D plot
Date: Wed, 4 May 2016 14:10:09 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0

Hi,

I manage to do so:

>> x= rand(100,1)*100; y =rand(100,1)*100; z= rand(100,1)*100;
>> img=rand(100,100); % or img=imread('whatever_image.png')
>> hold on; imagesc(img); plot3(x,y,z, '.')
>> xlabel('x');ylabel('y');zlabel('z')

It also works with imshow(), but their is some strange behaviour...
However with imagesc() the image is not in the right position. Inverse y
axis with

img=img(end:-1:1,:,:)

if you want it in the right position.

It works, but when you try to rotate your figure the image doesn't want
to move correctly: the pixels are still rectangular...

Does it help?


On 04/05/2016 13:01, Francesco Potortì wrote:
> Since I got no answers to my previous question, I'll try with a new one.
>
> I have a background image on which I need to plot 3-D data.  Using the
> approach that I have sketched below, I obtain partially satisfying
> results, so I am thinking about something different.
>
> It would be perfect if I managed to make a stem3 plot (a sort of 3D
> plot) while using a background image for the xy plane.  Any ideas on how
> to do that, if ever possible?
>

Attachment: imgBg.png
Description: PNG image

Attachment: imgBgRotate.png
Description: PNG image


reply via email to

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