distinguishable matplotlib colours / symbols / line styles

Chris Angelico rosuav at gmail.com
Mon Dec 16 11:19:55 EST 2019


On Tue, Dec 17, 2019 at 3:16 AM duncan smith <duncan at invalid.invalid> wrote:
>
> Hello,
>       Not really specific to Python or matplotlib (but that's what I'm
> using). I'm looking for a good combination of colours and symbols for
> scatter plots, and combination of colours and line styles for line
> plots. Too often I find myself producing these when I don't know whether
> they will end up being printed in colour or greyscale. It would be a lot
> easier if I could produce decent plots that would work well in either
> case. I can find various stuff on colour palettes, but pretty much
> nothing on symbols or line styles. Is anybody aware of an approach that
> works well? I'm aware of issues with colour blindness and RGB versus
> CMYK. Ideally I'd have something that I could just use that would deal
> with all these issues. TIA.
>

I'd recommend looking at the Web Content Accessibility Guidelines
published by the W3C; there are a number of tools out there that are
designed to help you pick colours for a web page, and the same sorts
of rules will apply here, I think.

Also, thank you for even *thinking* about this. A lot of people don't. :)

ChrisA


More information about the Python-list mailing list