troubleshooting Question

Overlay on pcolor

Avatar of James_h1023
James_h1023Flag for United Kingdom of Great Britain and Northern Ireland asked on
Programming Languages-Other
4 Comments1 Solution1202 ViewsLast Modified:
Hi all,

I have pcolor plotting a matrix, however I would like to overlay another matrix on top.
The matrix I want to overlap consists of only 0, 1 and 2s. For each cell in the pcolor plot, there is a corresponding value in the overlapping matrix. In each cell I want to plot a little green circle for 1s lets say and a little red circle for 2s, and nothing for 0s. The circle needs to be in the centre of the cell, and small, so the colour of the original cell can still be seen.
Hope that makes sense.

Any suggestions? I can draw circles, although mainly finding the centre of each cell, so if the figure is different sizes etc.!

Thanks
James
ASKER CERTIFIED SOLUTION
yuk99

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros