How to change a root locus axis label inside another root locus plot?
Show older comments
I'm plotting a root locus where I need to zoom a specific part of it. For this, I'm creating a new axis inside the plot, and them ploting again the root locus, but now within the specified limits of my zoom. I'm trying to remove 'Imaginary Axis (seconds^{-1})' and 'Real Axis (seconds^{-1})' from the innermost plot, since it is the same unit from the outter plot. I've already tried https://www.mathworks.com/matlabcentral/answers/151660-axis-labels-in-root-locus, however, I can only change the outtermost label, not the inner. Here is the code that I'm using:
rlocus(openLoopTransf(1));
title('Root Locus of the System - Analytical Method')
%new axes for the root locus zoom
axes1 = axes('Position',[0.580357142857142 0.161904761904762 0.283928571428571 0.242857142857143]);
rlocus(openLoopTransf(1))
xlabel('Remove Real')
ylabel('Remove Imaginary')
axIm = findall(gcf,'String','Remove Imaginary (seconds^{-1})');
axRe = findall(gcf,'String','Remove Real (seconds^{-1})');
set(axIm,'String','')
set(axRe,'String','')
title('')
xlim(axes1,[-3500 1]);
ylim(axes1,[-1500 1500]);
box(axes1,'on');
The code can find both 'Remove Imaginary (seconds^{-1})' and 'Remove Real (seconds^{-1})', however, set(axIm,'String','') and set(axRe,'String','') aren't making any changes to the axis.
The resulting plot is

Answers (0)
Categories
Find more on Classical Control Design 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!