Issue
I am comparing some algorithmic results using matplotlib.pyplot, however it is very difficult to understand what is going on since several lines have the same exact color. Is there a way to avoid this? I don't think that pyplot has only seven colors, has it?
Solution
Matplotlib has more than seven colors. You can specify your color in many ways (see http://matplotlib.sourceforge.net/api/colors_api.html).
For example, you can specify the color using an html hex string:
pyplot.plot(x, y, color='#112233')
Answered By - Abdelraouf Ouadjaout
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.