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 -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -