We help IT Professionals succeed at work.
Get Started

Overlay on pcolor

1,201 Views
Last Modified: 2013-11-25
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
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE