Move-raise a contour plot

2 Ansichten (letzte 30 Tage)
panagiotis
panagiotis am 10 Mai 2013
Hi all,
I want to move-raise a contour plot to a specific location.I have already moved it alongside an axes but after rotation it is not at the wanted position. I already have
[~,h]=contourf(zz,yy,pressure,10) ;
%handles of plot
hh=get(h,'children');
rotate(hh,[0 1 0],90);
rotate(hh,[1 0 0],90);
%Placement of contour plot
for i=1:numel(hh)
xdata = ones(size( get(hh(i),'ZData') ));
set(hh(i), 'XData',pos*xdata)
end
Let's say now that the y limits are [0 10] & z limits [-15 15]. After the above code, the y limits are [-5 5]. The z limits remain the same because of their symmetry. That means that the contour plot has been moved from [0 10] to [-5 5] for y axes.
Is there any idea how can this problem be solved??
Thanks in advance, Panagiotis

Antworten (0)

Kategorien

Mehr zu Contour Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by