How to change the thickness of grid lines in pzplot() or in pzmap()
Mostrar comentarios más antiguos
Hello,
I'm trying to change the thickness of grid lines in pole-zero plot which is plotted using pzplot() command. I could only turn-on and off the grid using "zgrid" command.
Can any one help.
Following is the code i'm trying out.
%example transfer function
T=tf([1 1 1],[1 1 1 1 1]);
Ts=1/10000;
% tranasferfunction in z domain.
Tz=c2d(T,Ts);
figure;
pzplot(Tz);
zgrid;
Respuestas (2)
Walter Roberson
el 10 de Ag. de 2017
0 votos
2 comentarios
NAGA BRAHMENDRA
el 13 de Ag. de 2017
Walter Roberson
el 13 de Ag. de 2017
Ah. That facility is not designed to make it convenient to change the grid lines.
ax = gca();
L = findall(ax, 'type', 'line'); %findall is important
Now at this point change either
L(1).LineWidth = 2;
or
L(2).LineWidth = 2;
I do not know which of the two is considered the z axes. The first of the two is the lines that run from edge to edge, and the second of the two is the lines that are more or less concentric.
It is now simple to do this via the pzplot chart API.
h = pzplot(drss(3)); %Create chart
h.AxesStyle.GridVisible = "on"; %Enable z-grid
h.AxesStyle.GridLineWidth = 3; %Thicken grid line
Categorías
Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
