triadruid: Apollo and the Raven, c. 480 BC , Pistoxenus Painter  (Default)
[personal profile] triadruid
I would like to graph several pairs of RGB triplets (#FFBB99,#000020 for example), but cannot figure out how to do it properly without folding space and time in unfortunate ways.

Any ideas that don't involve six dimensions?

Date: 2008-10-13 09:35 pm (UTC)
From: [identity profile] featherynscale.livejournal.com
Why six dimensions instead of three?

Also, why are you doing this at all?

Date: 2008-10-13 09:46 pm (UTC)
ext_3038: Red Panda with the captain "Oh Hai!" (Default)
From: [identity profile] triadruid.livejournal.com
Pairs of colors: RGB for foreground, RGB for background. I might be able do line segments connecting the two points in a 3D-graph...

It's mostly just idle speculation. I've been staring at computer guts too long today. :)

Date: 2008-10-13 10:21 pm (UTC)
From: [identity profile] auraseer.livejournal.com
Yeah, line segments was my first thought.

Or if you want to get trippy, plot the first triplet as a point, and then draw the point in the color indicated by the second triplet. It would be tough to interpret but might generate pretty pictures.

Date: 2008-10-13 10:30 pm (UTC)
ext_3038: Red Panda with the captain "Oh Hai!" (Default)
From: [identity profile] triadruid.livejournal.com
Your second suggestion actually might be kind of interesting.

Date: 2008-10-13 10:08 pm (UTC)
From: [identity profile] rfunk.livejournal.com
Why not treat each triplet as a single number? Then you're down to two dimensions, and you just have to scale them down a lot.

Date: 2008-10-13 10:18 pm (UTC)
From: [identity profile] auraseer.livejournal.com
That makes it hard to see anything useful by looking at the distance between points.

For instance, #000001 is pretty much the same color as #010000; they are nearly black and hard to distinguish from each other. On a 3D graph, that is easy to see because they are both close to the origin. However if you flatten them into single numbers and stick them on a number line, the red one will be thousands of times farther from the origin than the blue one.

Date: 2008-10-13 10:26 pm (UTC)
ext_3038: Red Panda with the captain "Oh Hai!" (Default)
From: [identity profile] triadruid.livejournal.com
That was my first thought, but FF,00,99 is a very different shade than FF,01,00.

er...

Date: 2008-10-13 10:09 pm (UTC)
From: [identity profile] popefelix.livejournal.com
Well, those are just integers, so why not graph them that way? Maybe on a logarithmic scale so that you don't have vast amounts of empty space in between your points.

Re: er...

Date: 2008-10-13 10:27 pm (UTC)
ext_3038: Red Panda with the captain "Oh Hai!" (Default)
From: [identity profile] triadruid.livejournal.com
*scratches head* I'm not sure I explained myself well originally. But the integers are linked because they describe the color along three axes, so unless I'm misunderstanding something...

Re: er...

Date: 2008-10-14 12:03 am (UTC)
From: [identity profile] popefelix.livejournal.com
let's step back a moment. What are you trying to accomplish?

Re: er...

Date: 2008-10-14 02:28 pm (UTC)
ext_3038: Red Panda with the captain "Oh Hai!" (Default)
From: [identity profile] triadruid.livejournal.com
It's actually sort of a silly exercise, but I wanted to identify where my LJ Friends 'custom color scheme' was not distinguishing well between people. My flist has gotten big enough lately that I've started to double-up on color combinations, and when somebody new gets the same basic color scheme as somebody I've been reading for a long time (dark blue on peacock blue, for example), it throws my brain off.

So I thought, if I could show them graphically rather than the laundry list of http://www.livejournal.com/friends/edit.bml, it would be systematic. But then my brain went splodey. :)

Re: er...

Date: 2008-10-14 02:30 pm (UTC)
From: [identity profile] popefelix.livejournal.com
YOUR HEAD ASPLODE! ;)

Sounds interesting. But I don't think the bandwidth is there to do it in LJ comments. Let's talk about it tomorrow night over pool.

Date: 2008-10-13 10:10 pm (UTC)
From: [identity profile] auraseer.livejournal.com
You could graph each pair as a line segment. If they're ordered pairs, graph them as vectors (with the arrow on one end) or just give them different-colored endpoints.

More generally, a set of points can be represented as a connected shape. Three points can be drawn as a triangle, four as a quadrilateral, etc. For flat triangles or complete solids, shading or coloring the interior makes them easier to distinguish from each other.

Why are you trying to graph RGB triplets instead of just drawing the colors?

Date: 2008-10-13 10:29 pm (UTC)
ext_3038: Red Panda with the captain "Oh Hai!" (Default)
From: [identity profile] triadruid.livejournal.com
Drawing the colors might work, but I'm looking for insufficient contrast between pairs, and my eyes don't always do a very good job of color matching. Also, there's more pairs than I can put side-by-side here.

I think the line segments are going to end up being the way to go here.

Date: 2008-10-14 02:55 am (UTC)
From: [identity profile] auraseer.livejournal.com
If all you want to know is the contrast, you don't need to generate a graph. Just use the distance formula to calculate the separation of each pair of points. That gives you a single number for each pair, and a larger number indicates greater contrast.

Given points A (Xa, Ya, Za) and B (Xb, Yb, Zb), plug the values into this:
sqrt( (Xa-Xb)2 + (Ya-Yb)2 + (Za-Zb)2 )

Date: 2008-10-14 02:30 pm (UTC)
ext_3038: Red Panda with the captain "Oh Hai!" (Default)
From: [identity profile] triadruid.livejournal.com
Mmmm, problem is, I need to compare all of them pairwise, not just discreet pairs. (see my response to [Unknown site tag] above).

It'd still only be 27k pairs or so, but... ;)

Date: 2008-10-15 04:39 am (UTC)
From: [identity profile] auraseer.livejournal.com
You want to compare each value to every other? I don't see how you'll do that with the line segment graph. It will generate a big impenetrable ball of tangles.

One line segment represents one ordered pair, so if there are 27k possible pairings, you'll wind up with 27k line segments crammed into the graph. With all those overlapping and obscuring each other, I have no idea how you'd read it.

Date: 2008-10-15 05:01 am (UTC)
ext_3038: Red Panda with the captain "Oh Hai!" (infinity)
From: [identity profile] triadruid.livejournal.com
Nah, I should only end up with √27,000 line segments - which might still be impenetrable. :)

Date: 2008-10-14 02:20 am (UTC)
From: [identity profile] geekatlarge.livejournal.com
What did you intend to graph these in? Also, I'd like to see the full set of points if possible.

January 2019

S M T W T F S
   12345
6789101112
13141516171819
20212223242526
2728293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 14th, 2025 07:46 pm
Powered by Dreamwidth Studios