title: Plot a black-and-white binary map in matplotlib
body: <p>I'm using python to simulate some automation models, and with the help of matplotlib I'm producing plots like the one shown below.</p>
  
  <p><img src="https://i.stack.imgur.com/SUeE2.png" alt="enter image description here"></p>
  
  <p>I'm currently plotting with the following command:</p>
  
  <pre><code>ax.imshow(self.g, cmap=map, interpolation='nearest')
  </code></pre>
  
  <p>where <code>self.g</code> is the binary map (<code>0</code> -> blue, <code>1</code> -> red in my current plots).</p>
  
  <p>However, to include this in my report I would like the plot to be with black dots on white background instead of red on blue. How do I accomplish that?</p>