Move-raise a contour plot
Show older comments
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
Answers (0)
Categories
Find more on Contour Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!