From: George Michaelson <ggm@apnic.net>
To: 9fans@cse.psu.edu
Subject: [9fans] alg to make a good colour palette for a graph
Date: Fri, 21 Feb 2003 16:08:29 +1000 [thread overview]
Message-ID: <20030221160829.1b2eca90.ggm@apnic.net> (raw)
In-Reply-To: <82b065d91f919c7c32a7dc45b32ffff9@plan9.bell-labs.com>
totally non Plan9 question but people here oftentimes have nice simple algs
which work well across lots of contexts.
I need to make a set of <n> visually distinctive colours in rgb space such
that I can feed the rgb values into a tool (RRD) to graph with.
Microsloth picks colours for you. a very nasty muted set. Gnuplot repeats the
same palette of colours over and over again.
I read in the RRD list of a technique to map the <n> as equidistant points
distributed in HSV space, and then use them. But, no code.
N varies. Usually its less than 15. In those cases I think I can use an
Acronymic 'Richard Of York Gave Battle In Vain' selection. But for one case I
am looking at, I need 250+ reasonably distinctive colours.
I thought about just taking a 256colourmap, and randomizing it, and using the
entire palette that way. It should mean no two adjacent colours are very alike
which is fine for a stacked line chart.
Is there something simple and nice, which I can do in AWK? Something which
will go into the ff-space and pick good colour combos? The obvious things I
come up with make gray (for a stunningly obvious reason) It would be super
nice to have up to 25 or 30 colours which are all mutually equi-distant in
some sense.
clues? I've tried web browsing. its phenominal how few things seem remotely
relevant from keyword searches using colourspace, colourmap, palette, graph.
-George
next prev parent reply other threads:[~2003-02-21 6:08 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-21 5:47 [9fans] output of ps(1) memory usage YAMANASHI Takeshi
2003-02-21 5:55 ` Russ Cox
2003-02-21 6:08 ` George Michaelson [this message]
2003-02-21 6:39 ` [9fans] alg to make a good colour palette for a graph Eric Grosse
2003-02-21 6:57 ` George Michaelson
2003-02-21 7:46 ` Skip Tavakkolian
2003-02-21 12:56 ` [9fans] " Jim Choate
2003-03-24 1:48 ` [9fans] UTF-8 handling in non-plan9 app: help finding bug George Michaelson
2003-03-24 2:31 ` Russ Cox
2003-03-24 3:01 ` David Presotto
2003-03-25 16:15 ` Boyd Roberts
2003-03-25 17:04 ` Russ Cox
2003-03-25 17:13 ` Boyd Roberts
2003-03-25 17:05 ` Jack Johnson
2003-03-25 17:14 ` Boyd Roberts
2003-03-25 22:55 ` George Michaelson
[not found] <3106177662@snellwilcox.com>
2003-02-21 10:03 ` [9fans] alg to make a good colour palette for a graph Steve Simon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030221160829.1b2eca90.ggm@apnic.net \
--to=ggm@apnic.net \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).