Email: [email protected]

This Portal for internal use only!

  • My Download
  • Checkout
Application Package Repository Telkom University
All Categories

All Categories

  • IBM
  • Visual Paradigm
  • Adobe
  • Google
  • Matlab
  • Microsoft
    • Microsoft Apps
    • Analytics
    • AI + Machine Learning
    • Compute
    • Database
    • Developer Tools
    • Internet Of Things
    • Learning Services
    • Middleware System
    • Networking
    • Operating System
    • Productivity Tools
    • Security
    • VLS
      • Office
      • Windows
  • Opensource
  • Wordpress
    • Plugin WP
    • Themes WP
  • Others

Search

0 Wishlist

Cart

Categories
  • Microsoft
    • Microsoft Apps
    • Office
    • Operating System
    • VLS
    • Developer Tools
    • Productivity Tools
    • Database
    • AI + Machine Learning
    • Middleware System
    • Learning Services
    • Analytics
    • Networking
    • Compute
    • Security
    • Internet Of Things
  • Adobe
  • Matlab
  • Google
  • Visual Paradigm
  • WordPress
    • Plugin WP
    • Themes WP
  • Opensource
  • Others
More Categories Less Categories
  • Get Pack
    • Product Category
    • Simple Product
    • Grouped Product
    • Variable Product
    • External Product
  • My Account
    • Download
    • Cart
    • Checkout
    • Login
  • About Us
    • Contact
    • Forum
    • Frequently Questions
    • Privacy Policy
  • Forum
    • News
      • Category
      • News Tag

iconTicket Service Desk

  • My Download
  • Checkout
Application Package Repository Telkom University
All Categories

All Categories

  • IBM
  • Visual Paradigm
  • Adobe
  • Google
  • Matlab
  • Microsoft
    • Microsoft Apps
    • Analytics
    • AI + Machine Learning
    • Compute
    • Database
    • Developer Tools
    • Internet Of Things
    • Learning Services
    • Middleware System
    • Networking
    • Operating System
    • Productivity Tools
    • Security
    • VLS
      • Office
      • Windows
  • Opensource
  • Wordpress
    • Plugin WP
    • Themes WP
  • Others

Search

0 Wishlist

Cart

Menu
  • Home
    • Download Application Package Repository Telkom University
    • Application Package Repository Telkom University
    • Download Official License Telkom University
    • Download Installer Application Pack
    • Product Category
    • Simple Product
    • Grouped Product
    • Variable Product
    • External Product
  • All Pack
    • Microsoft
      • Operating System
      • Productivity Tools
      • Developer Tools
      • Database
      • AI + Machine Learning
      • Middleware System
      • Networking
      • Compute
      • Security
      • Analytics
      • Internet Of Things
      • Learning Services
    • Microsoft Apps
      • VLS
    • Adobe
    • Matlab
    • WordPress
      • Themes WP
      • Plugin WP
    • Google
    • Opensource
    • Others
  • My account
    • Download
    • Get Pack
    • Cart
    • Checkout
  • News
    • Category
    • News Tag
  • Forum
  • About Us
    • Privacy Policy
    • Frequently Questions
    • Contact
Home/Matlab/Change marker colour of pzplot

Change marker colour of pzplot

PuTI / 2025-01-27
Change marker colour of pzplot
Matlab News

Hello everyone
I’m trying to change the marker color in the pzplot graph. I’m using version 2024b.

Apparently, in this version, a new object(?) called "PZPlot Properties" was introduced, which is great.
Using this new object, I can easily change the size and line thickness of all markers. But I can also only change the colour of all markers. I’d like to change the colours of the markers for the poles and zeros separately.

I tried using the "findobj" method and found, that the PZPlot apparently consists of two Scatter-Plots called "PZPoleScatter" and "PZZeroScatter", and I tried changing the color of the markers in those Scatter plots, but this does not seem to have an effect on the markers.
When I change the colour of the markers using the PZPlot properties Object, I see the color definition of the markers in both scatter plots change, and I can also see that the colours change if I directly access the properties and change the colour, but the plot isn’t drawn with those correct colors.
I tried using refresh after changing the values, but that doesn’t have any effect either.

See my code below:
s = tf(‘s’);

f = (1 + 1/s)

pzp = pzplot(f);
% See https://ch.mathworks.com/help/ident/ref/controllib.chart.pzplot-properties.html for new PZPlot-properties object
pzp.Responses.MarkerSize = 10;
pzp.Responses.LineWidth = 2;
%pzp.Responses.Color = ‘green’; % Changes colour of all markers
oPole = findobj(gca, ‘Tag’, ‘PZPoleScatter’);
oPole.MarkerEdgeColor = ‘red’;
oZero = findobj(gca, ‘Tag’, ‘PZZeroScatter’);
oZero.MarkerEdgeColor = ‘blue’;

rsp = findobj(gca, ‘Tag’, ‘PZPoleScatter’); % read object again to see if properties got changed correctly

I also found the following two topics, but they do not work anymore as there is no "Line" child in the PZPlot object.
https://ch.mathworks.com/matlabcentral/answers/276605-change-pzplot-marker-size
https://ch.mathworks.com/matlabcentral/answers/431293-i-am-using-pole-zero-map-pzmap-and-i-want-to-enhance-the-size-of-pole-or-zero-or-in-other-words-iHello everyone
I’m trying to change the marker color in the pzplot graph. I’m using version 2024b.

Apparently, in this version, a new object(?) called "PZPlot Properties" was introduced, which is great.
Using this new object, I can easily change the size and line thickness of all markers. But I can also only change the colour of all markers. I’d like to change the colours of the markers for the poles and zeros separately.

I tried using the "findobj" method and found, that the PZPlot apparently consists of two Scatter-Plots called "PZPoleScatter" and "PZZeroScatter", and I tried changing the color of the markers in those Scatter plots, but this does not seem to have an effect on the markers.
When I change the colour of the markers using the PZPlot properties Object, I see the color definition of the markers in both scatter plots change, and I can also see that the colours change if I directly access the properties and change the colour, but the plot isn’t drawn with those correct colors.
I tried using refresh after changing the values, but that doesn’t have any effect either.

See my code below:
s = tf(‘s’);

f = (1 + 1/s)

pzp = pzplot(f);
% See https://ch.mathworks.com/help/ident/ref/controllib.chart.pzplot-properties.html for new PZPlot-properties object
pzp.Responses.MarkerSize = 10;
pzp.Responses.LineWidth = 2;
%pzp.Responses.Color = ‘green’; % Changes colour of all markers
oPole = findobj(gca, ‘Tag’, ‘PZPoleScatter’);
oPole.MarkerEdgeColor = ‘red’;
oZero = findobj(gca, ‘Tag’, ‘PZZeroScatter’);
oZero.MarkerEdgeColor = ‘blue’;

rsp = findobj(gca, ‘Tag’, ‘PZPoleScatter’); % read object again to see if properties got changed correctly

I also found the following two topics, but they do not work anymore as there is no "Line" child in the PZPlot object.
https://ch.mathworks.com/matlabcentral/answers/276605-change-pzplot-marker-size
https://ch.mathworks.com/matlabcentral/answers/431293-i-am-using-pole-zero-map-pzmap-and-i-want-to-enhance-the-size-of-pole-or-zero-or-in-other-words-i Hello everyone
I’m trying to change the marker color in the pzplot graph. I’m using version 2024b.

Apparently, in this version, a new object(?) called "PZPlot Properties" was introduced, which is great.
Using this new object, I can easily change the size and line thickness of all markers. But I can also only change the colour of all markers. I’d like to change the colours of the markers for the poles and zeros separately.

I tried using the "findobj" method and found, that the PZPlot apparently consists of two Scatter-Plots called "PZPoleScatter" and "PZZeroScatter", and I tried changing the color of the markers in those Scatter plots, but this does not seem to have an effect on the markers.
When I change the colour of the markers using the PZPlot properties Object, I see the color definition of the markers in both scatter plots change, and I can also see that the colours change if I directly access the properties and change the colour, but the plot isn’t drawn with those correct colors.
I tried using refresh after changing the values, but that doesn’t have any effect either.

See my code below:
s = tf(‘s’);

f = (1 + 1/s)

pzp = pzplot(f);
% See https://ch.mathworks.com/help/ident/ref/controllib.chart.pzplot-properties.html for new PZPlot-properties object
pzp.Responses.MarkerSize = 10;
pzp.Responses.LineWidth = 2;
%pzp.Responses.Color = ‘green’; % Changes colour of all markers
oPole = findobj(gca, ‘Tag’, ‘PZPoleScatter’);
oPole.MarkerEdgeColor = ‘red’;
oZero = findobj(gca, ‘Tag’, ‘PZZeroScatter’);
oZero.MarkerEdgeColor = ‘blue’;

rsp = findobj(gca, ‘Tag’, ‘PZPoleScatter’); % read object again to see if properties got changed correctly

I also found the following two topics, but they do not work anymore as there is no "Line" child in the PZPlot object.
https://ch.mathworks.com/matlabcentral/answers/276605-change-pzplot-marker-size
https://ch.mathworks.com/matlabcentral/answers/431293-i-am-using-pole-zero-map-pzmap-and-i-want-to-enhance-the-size-of-pole-or-zero-or-in-other-words-i pzplot, marker, customization MATLAB Answers — New Questions

​

Tags: matlab

Share this!

Related posts

Generate ST code from a look-up table with CONSTANT attribute
2025-05-22

Generate ST code from a look-up table with CONSTANT attribute

“no healthy upstream” error when trying to access My Account
2025-05-22

“no healthy upstream” error when trying to access My Account

MATLAB Answers is provisionally back?
2025-05-21

MATLAB Answers is provisionally back?

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Categories

  • Matlab
  • Microsoft
  • News
  • Other
Application Package Repository Telkom University

Tags

matlab microsoft opensources
Application Package Download License

Application Package Download License

Adobe
Google for Education
IBM
Matlab
Microsoft
Wordpress
Visual Paradigm
Opensource

Sign Up For Newsletters

Be the First to Know. Sign up for newsletter today

Application Package Repository Telkom University

Portal Application Package Repository Telkom University, for internal use only, empower civitas academica in study and research.

Information

  • Telkom University
  • About Us
  • Contact
  • Forum Discussion
  • FAQ
  • Helpdesk Ticket

Contact Us

  • Ask: Any question please read FAQ
  • Mail: [email protected]
  • Call: +62 823-1994-9941
  • WA: +62 823-1994-9943
  • Site: Gedung Panambulai. Jl. Telekomunikasi

Copyright © Telkom University. All Rights Reserved. ch

  • FAQ
  • Privacy Policy
  • Term

This Application Package for internal Telkom University only (students and employee). Chiers... Dismiss