Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Re: rotate scatter plot !??? Why can't I do this?

$
0
0
scatter returns handle of type "hggroup"

Rotate operates on handles of primitive graphics

x=[-1 -1 0 1 1 -1];
y=[0 2 4 2 0 0];
hold on
axis([-5 5 -5 5 -5 5])
view(45,5)
h=scatter(x,y) %% see plot(x,y) instead of this line (that result I want to obtain)
h=get(h,'children');
rotate(h,[0 1 0],270)
rotate(h,[1 0 0],90)
axis([-0 5 -5 5 -5 5])
hold off

% Bruno

Viewing all articles
Browse latest Browse all 19628

Trending Articles