python - Defining a binary matplotlib colormap -


I tried to plot a boolean 2D array using matplotlib.imshow D / D wants to be able to choose two colors (one for a true and false ) It seems that the logic of imshow To be passed as a colormap, but in my case it seems a bit of an overkill as I do not need continuous and more important, I do not know how to Tm defines Klrmap to (matplotlib doctor did not help me with it).


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

asp.net mvc - How to attach sql database to a javascript graph -

c# - How to know the number of Threads created and limit the Tasks accordingly -