Python using custom color in plot
<p>I'm having a problem that (I think) should have a fairly simple solution. I'm still a relative novice in Python, so apologies if I'm doing something obviously wrong. I'm just trying to create a simple plot with multiple lines, where each line is colored by its own specific, user-defined color. When I run the following code as a test for one of the colors it ends up giving me a blank plot. What am I missing here? Thank you very much!</p>

<pre><code>import numpy as np
import matplotlib.pyplot as plt
from colour import Color 

dbz53 = Color('#DD3044')

*a bunch of arrays of data, two of which are called x and mpt1* 

fig, ax = plt.subplots()
ax.plot(x, mpt1, color='dbz53', label='53 dBz')
ax.set_yscale('log')

ax.set_xlabel('Diameter (mm)')
ax.set_ylabel('$N(D) (m^-4)$')
ax.set_title('N(D) vs. D')
#ax.legend(loc='upper right')

plt.show()
</code></pre>

<p>In the <code>plot</code> command, you could enter Hex colours. A much more simple way to beautify your plot would be to simply use matplotlib styles. For instance, before any plot function, just write
<code>plt.style.use('ggplot')</code></p>

python numpy matplotlib colors