Slashdot Mirror


Brewing Better Charts and Maps

Frosty P writes: Cindy Brewer chairs the geography program at Penn State, and has devoted much of her career to helping other people make better maps. By bringing research on visual perception to bear on design, she says cartographers can make maps that are more effective and more intuitive to understand. Many of the same lessons apply equally well to other types of data visualization. A big reason people run into trouble with their color schemes, Brewer says, is the way color picking is done in many software programs. Take the RGB cube (or sliders) many programs use to display colors along red, green, and blue axes, for example. 'That's not the least bit perceptually scaled,' Brewer said. 'In some parts of the cube a tiny step gives you a huge perceptual difference. In other parts it all looks the same.' Brewer's best-known invention is a website called Color Brewer, which helps mapmakers pick a color scheme that's well-suited for communicating the particular type of data they're mapping.

28 comments

  1. Slashvertising? by Z00L00K · · Score: 1

    Looks like an ad for a technology that's pretty obvious.

    --
    If builders built buildings the way programmers wrote programs, then the first woodpecker would destroy civilization.
    1. Re:Slashvertising? by U2xhc2hkb3QgU3Vja3M · · Score: 4, Insightful

      It's so obvious that I encounter the problem in maps, pie charts, categories in video games, etc.

      I guess it's not that obvious after all. Add the various degrees of color-blindness that a lot of people have and you end up with a serious issue.

    2. Re:Slashvertising? by vongillern · · Score: 2

      1. colorbrewer is free 2. with all the mapping disasters I've seen, I can assure you that using the Lab/HCL color space is not obvious (or even known) to the vast majority of map creators

    3. Re:Slashvertising? by Frosty+Piss · · Score: 1

      Nope, as a map nut I just thought it was an interesting story with interesting ideas to people who work with maps, UIs, those sorts of things.

      --
      If you want news from today, you have to come back tomorrow.
    4. Re:Slashvertising? by tehcyder · · Score: 1

      Am I the only one who thinks it's cheating to get frist post by actually submitting the fucking article?

      --
      To have a right to do a thing is not at all the same as to be right in doing it
    5. Re:Slashvertising? by Anonymous Coward · · Score: 0

      It's a link to a free web site that contains no advertising. What, exactly, would be the revenue motive for a slashvertisement? Furthermore, the link accompanies an informative article. Finally, if this technology is so obvious, then why do people still use shitty color schemes when making maps and other graphics?

  2. RColorBrewer by Juba · · Score: 3, Informative

    For R users, see the RColorBrewer package for an easy way to use these palettes in maps and charts.

    1. Re:RColorBrewer by vongillern · · Score: 2

      d3.js users can use the built in functions for HCL/Lab https://github.com/mbostock/d3...

  3. maps are for cows by Anonymous Coward · · Score: 0

    Find grass!

  4. Re: Nope, just the daily SJW story by Anonymous Coward · · Score: 0

    I know how to make a map red, so I am a programmer!

  5. how does brewer compares to by Anonymous Coward · · Score: 0

    more recent "color pickers" like http://tools.medialab.sciences-po.fr/iwanthue/

  6. Ed Tufte by ClickOnThis · · Score: 5, Insightful

    A big reason people run into trouble with their color schemes, Brewer says, is the way color picking is done in many software programs. Take the RGB cube (or sliders) many programs use to display colors along red, green, and blue axes, for example. 'That's not the least bit perceptually scaled,' Brewer said. 'In some parts of the cube a tiny step gives you a huge perceptual difference. In other parts it all looks the same.'

    I remember Ed Tufte making the same point about displaying information with rainbow color-maps, an unfortunate favourite of many scientists.

    --
    If it weren't for deadlines, nothing would be late.
    1. Re:Ed Tufte by Anonymous Coward · · Score: 2, Interesting

      an unfortunate favourite of many scientists.

      In my experience, it is more likely whatever comes as default with the plotting program they use. After 1000 other things have been painstakingly dealt with, there have been zero papers rejected because they didn't choose the right colormap, so it is inefficient to waste time on it.

    2. Re:Ed Tufte by kevmeister · · Score: 1

      I was involved in research on effective color mapping at Lawrence Livermore 40 years ago. The issues discussed here were ones we analyzed and designed mapping tools to provide mappings that worked well for a variety of applications. Mapping proved closely linked to both the nature of the data (e.g. smooth vs. high contrast edges vs. noisy) and what the goal of the mapping was. I know of photography and graphics designers who still use the papers generated from this research, but mostly it seems to have been forgotten,

      Rainbow color maps are occasionally useful, but for most cases they are dreadfully bad. Sawtooths are very good for many applications and we found that random walks, with appropriate parameters, were especially effective even though a bit of trial and error was required tor good results. A rainbow that was adjusted for the perception of the human visual system was a good general purpose mapping, but it looked quite a bit different from the normal, flat rainbow most commonly used both then and today.

      --
      Kevin Oberman, Network Engineer, Retired
  7. Charts? by Anonymous Coward · · Score: 0

    What does this have to do with charts?

  8. "Software" programs by diodeus · · Score: 3, Funny

    Every time I see an article mentioning "software programs" I cringe. I guess they're different from "hardware programs" or "exercise programs" or you can just call it "software" like everyone else. It reads like someone still uses a typewriter and not one of these fancy new computers using "word processing software programs". *sigh*

    1. Re:"Software" programs by Anonymous Coward · · Score: 0

      Brewer says, is the way color picking is done in many software programs

      'Software programs' is the plural of 'software program'. The word 'software' alone in that context wouldn't work.

      If the article just said 'programs', then it could refer to programs in the sense of 'an agreed form [for presenting data]': so it could be about chart presentation in general rather than software design. It would be slightly archaic sounding, but it would be a valid interpretation.

    2. Re:"Software" programs by Anonymous Coward · · Score: 0

      Cringe? Sigh? Do you also swoon, you drama queen?

    3. Re:"Software" programs by jc42 · · Score: 1

      Brewer says, is the way color picking is done in many software programs

      'Software programs' is the plural of 'software program'. The word 'software' alone in that context wouldn't work.

      If the article just said 'programs', then it could refer to programs in the sense of 'an agreed form [for presenting data]': so it could be about chart presentation in general rather than software design. It would be slightly archaic sounding, but it would be a valid interpretation.

      The cringer (diodeus) is perhaps not familiar with such things as concert programs, which are often full-color booklets, or television programs, which have been in color since back in the 1960s or so. In both of these, the colors were originally and sometimes still are rather crappy and unrealistic, so they're on-topic in the current discussion.

      Dunno why you'd call them "archaic sounding", though. I've seen lots of concert programs and a few television programs in recent years. The TV is starting to look a bit archaic, though, since with the Web you can see something when it's convenient for you, and you don't have the problem of two things you want to watch being scheduled at the same time. But the term "video" hasn't really replaced the term "program" for what used to be the sole domain of TV, and "program" is still the general public's main term for such chunks of drama received electronically. Maybe as the Web slowly supplants broadcast TV the usage will shift.

      --
      Those who do study history are doomed to stand helplessly by while everyone else repeats it.
  9. Pattern, repetition, variation, and regulation by davide+marney · · Score: 3, Interesting

    I was struck by the similarities in the shades of colors in the Color Brewer to the use of patterns, repeats, and variations in music. When you hear the same musical pattern repeated over and over, it sets up an expectation in the mind for that pattern to continue. In the Color Blender, choosing a range of mono-chromatic values for a single hue does exactly the same thing. Once we see the pattern of a single color changing value in regular perceptual steps (more on that in a moment), it sets up an expectation that this will continue. By mapping this expectation to a data series, it's easy to understand how that might highlight and enhance one's understanding of how the data is changing, too.

    I have always hated the traditional color cubes for exactly the same reason as the professor: the units of control in the interface are wholly out of step with the units of perception. Move a little, and it is supposed to change just a little, but that is not what happens in a color cube!

    Music has a similar problem, in that sound is not equally perceived across the range of possible combinations of vibrations. Early musicians invented "scales" of sounds, which are really just a sequence of sweet spots in these combinations that align with our own, internal "data" series -- the series of emotions and thought. When we hear a "sad" song, it literally makes us feel sad, the sound of sadness coincides so closely with the feeling. All of the sadness-inducing notes are collected together into a single, named collection called a "minor" key, something like a library from a programming perspective.

    However, even with all the libraries of sound available, it was recognized very early on that the ranges are not mathematically perfect. Sound is composed by the summation of multiple vibrations, some of which cancel each other other, and others that emphasize each other. You have to "temper" the scales, that is, slightly tune them away from mathematical perfection, as you go up or down in pitch, in order for them to be equally perceived.

    --
    "We receive as friendly that which agrees with, we resist with dislike that which opposes us" - Faraday
    1. Re:Pattern, repetition, variation, and regulation by Anonymous Coward · · Score: 1

      You don't 'temper' the scales to let them be more equally perceived. You temper the tuning to make it possible to play in different tonalities. As long as you only want to play in (for example) G major, and untemepered G major scale is going to sound better than a tempered one. But as soon as you want to play in a different tonality on an instrument perfetcly tuned to G it's going to be horribly out of tune.

      Tempering evenly distributes the error over all tonalities, so it is least noticable. However it's still a compromise and untemepered tunings sound better if you can use them.

      Calling the minor scale 'sad' is also purely a cultural thing, not something universal. Lot's of old folk tunes are in a minor key without being sad. And a single note can never be minor, so the minor scale is not a collection of 'sad notes'. Only an interval can be minor (small) or major (big).

      It's clear the subject interest you (and righly so it's a very interesting topic), so I implore you to do some research into chords and harmonics (wikipedia is you friend), you'll love it!

  10. I had this problem with heat maps by swm · · Score: 1

    I programmed some heat maps once.
    Grey-scale is no problem: you map the data range into 0-255 and you get nice grey scales.
    Color was tricky.
    If you just ramp the RGB values from red to green to blue, you don't get smooth color gradients.
    Instead, you get all red up to the 1/3 point, and then all green from 1/3 to 2/3, and then all blue.
    Right where the colors change over there are thin strips where one color shades into the next.
    I had to twiddle the mapping function to stretch out those strips of shading in order to get a smooth color gradient across the entire data range.

    1. Re:I had this problem with heat maps by Anonymous Coward · · Score: 0

      It would probably be better to use a perceptually uniform color space instead of RGB, and change all parameters, instead of just one at a time. Maybe generate a number of random walks over the color space (fixed step length) and choose the one that looks best. Or for non-gradient data, with a physics model of random points in color space that repel each other.

  11. Re:Nope, just the daily SJW story by Anonymous Coward · · Score: 0

    Is she hot?

    Certainly not. If qualified as "hot for her age", perhaps, but I think no, not in a general sense. Of course, as you said, we are talking about perception here and I'm sure that's going to vary with the grey beards among us.

  12. Re:Nope, just the daily SJW story by ChrisMaple · · Score: 1

    Most of the women I see her age (45+) are working on their third chin. She looks good, though perhaps prematurely gray.

    --
    Contribute to civilization: ari.aynrand.org/donate