title: How can I add conditionals to the plot command?
body: <p>Here's part of a function in my code: (using Python)</p>
  <pre><code>def numsli_expc (L,rang1,rang2,nuni,nshots,succ1 = False):  
  ...
      hist = plt.bar(spec.keys(), spec.values(), width=np.abs((rang2-rang1)/L), color='deepskyblue',alpha = 0.7)
  </code></pre>
  <p>I'm wondering if there's a way I can make <code>color</code> in my plot command determined by the argument <code>succ1</code>. For example, the default here is <code>False</code>. Can I make <code>color='red'</code> if <code>succ1=True</code>? (I could do that by copying the 'hist' command one more time. However that costs extra time and gives me some color mixing. Is there a simpler method that allows me to only use that once?)</p>
  <p>Thanks:)</p>