comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Plot colors
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Plot colors [message #84967] Wed, 19 June 2013 23:59 Go to previous message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
What are your favorite colors for overplotting several data sets in the
same diagram? (I'm assuming Coyote graphics here.) You'd want them to be
easy to tell apart and to have a good and similar contrast against the
(white) background.

For two colors it's easy: red and blue.

But already for three colors, if you add green you get something with
less contrasty. And for more colors, if you add the complement colors
cyan, magenta, and yellow, both yellow and cyan have the same problem.
So then I usually inspect the color names in cgcolor and pick darker
versions of the too light colors and some redder version of yellow. And
if I need more than six I don't really know what to do...

So, what is a good strategy? Do you have a good list that you always
use, and truncate it to the needed length? Or do you start the list
differently depending on how long it has to be? Has anybody written a
function for this? Something like

function plotcolors, index, Ncolors


/Mats
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL beginner-MPFIT questions
Next Topic: Speeding up data crunching using IDL_IDLBridge with asychronous execution

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:54:11 PDT 2025

Total time taken to generate the page: 0.00457 seconds