Color input to comm.ConstellationDiagram object
I want to display the scatterplots of 2 different users in my simulation in real-time, for which I am using the comm.ConstellationDiagram object. I would like to use different colours for each user’s scatterplot to distinguish between them. However, comm.ConstellationDiagram does not take a color input.
Scatterplot function takes a color input, but I don’t want the plots on different figures each time I call it. I want the points plotted in real-time in the same figure (for each user), this is why I am using the comm.ConstellationDiagram object.
Here’s a snippet of how I am using it:
constDiag1 = comm.ConstellationDiagram(2, …
"ChannelNames",{‘Header’,’Data’}, …
"ReferenceConstellation",{refConstHeader,refConstData1}, …
"ShowLegend",true, …
"EnableMeasurements",true,…
"Title",’User 1 constellation’);
constDiag2 = comm.ConstellationDiagram(2, …
"ChannelNames",{‘Header’,’Data’}, …
"ReferenceConstellation",{refConstHeader,refConstData2}, …
"ShowLegend",true, …
"EnableMeasurements",true,…
"Title",’User 2 constellation’);
for frame=1:framenum
[rxHeader1,rxData1,rxHeader2,rxData2] = myfunction(captureData);
constDiag1(complex(rxHeader1(:)), …
complex(rxData1(:)));
constDiag2(complex(rxHeader2(:)), …
complex(rxData2(:)));
end
Is there a way to include a colour input to the configuration of the object?
If not, how can I go about making a custom function for obtaining scatterplots in real-time (similar to what comm.ConstellationDiagram does) where I can configure each object in a different color?
Thanks! Any help is appreciated!I want to display the scatterplots of 2 different users in my simulation in real-time, for which I am using the comm.ConstellationDiagram object. I would like to use different colours for each user’s scatterplot to distinguish between them. However, comm.ConstellationDiagram does not take a color input.
Scatterplot function takes a color input, but I don’t want the plots on different figures each time I call it. I want the points plotted in real-time in the same figure (for each user), this is why I am using the comm.ConstellationDiagram object.
Here’s a snippet of how I am using it:
constDiag1 = comm.ConstellationDiagram(2, …
"ChannelNames",{‘Header’,’Data’}, …
"ReferenceConstellation",{refConstHeader,refConstData1}, …
"ShowLegend",true, …
"EnableMeasurements",true,…
"Title",’User 1 constellation’);
constDiag2 = comm.ConstellationDiagram(2, …
"ChannelNames",{‘Header’,’Data’}, …
"ReferenceConstellation",{refConstHeader,refConstData2}, …
"ShowLegend",true, …
"EnableMeasurements",true,…
"Title",’User 2 constellation’);
for frame=1:framenum
[rxHeader1,rxData1,rxHeader2,rxData2] = myfunction(captureData);
constDiag1(complex(rxHeader1(:)), …
complex(rxData1(:)));
constDiag2(complex(rxHeader2(:)), …
complex(rxData2(:)));
end
Is there a way to include a colour input to the configuration of the object?
If not, how can I go about making a custom function for obtaining scatterplots in real-time (similar to what comm.ConstellationDiagram does) where I can configure each object in a different color?
Thanks! Any help is appreciated! I want to display the scatterplots of 2 different users in my simulation in real-time, for which I am using the comm.ConstellationDiagram object. I would like to use different colours for each user’s scatterplot to distinguish between them. However, comm.ConstellationDiagram does not take a color input.
Scatterplot function takes a color input, but I don’t want the plots on different figures each time I call it. I want the points plotted in real-time in the same figure (for each user), this is why I am using the comm.ConstellationDiagram object.
Here’s a snippet of how I am using it:
constDiag1 = comm.ConstellationDiagram(2, …
"ChannelNames",{‘Header’,’Data’}, …
"ReferenceConstellation",{refConstHeader,refConstData1}, …
"ShowLegend",true, …
"EnableMeasurements",true,…
"Title",’User 1 constellation’);
constDiag2 = comm.ConstellationDiagram(2, …
"ChannelNames",{‘Header’,’Data’}, …
"ReferenceConstellation",{refConstHeader,refConstData2}, …
"ShowLegend",true, …
"EnableMeasurements",true,…
"Title",’User 2 constellation’);
for frame=1:framenum
[rxHeader1,rxData1,rxHeader2,rxData2] = myfunction(captureData);
constDiag1(complex(rxHeader1(:)), …
complex(rxData1(:)));
constDiag2(complex(rxHeader2(:)), …
complex(rxData2(:)));
end
Is there a way to include a colour input to the configuration of the object?
If not, how can I go about making a custom function for obtaining scatterplots in real-time (similar to what comm.ConstellationDiagram does) where I can configure each object in a different color?
Thanks! Any help is appreciated! scatterplot, constellation diagram, plotting in real-time, scatterplot colour MATLAB Answers — New Questions