How to change the thickness of grid lines in pzplot() or in pzmap()

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;

回答 (2 件)

Walter Roberson
Walter Roberson 2017 年 8 月 10 日

0 投票

2 件のコメント

NAGA BRAHMENDRA
NAGA BRAHMENDRA 2017 年 8 月 13 日
Thank you for your reply. I could turn-on and off the grid with the property editors. I couldn't change the thickness of z-grid lines in "pzplot".
Walter Roberson
Walter Roberson 2017 年 8 月 13 日
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.

サインインしてコメントする。

Andrew Ouellette
Andrew Ouellette 2026 年 6 月 1 日
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

カテゴリ

タグ

質問済み:

2017 年 8 月 10 日

回答済み:

2026 年 6 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by