A Better Default Colormap for Matplotlib | SciPy 2015 | Nathaniel Smith and Stéfan van der Walt

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ต.ค. 2024
  • Complete SciPy 2015 Talk & Tutorial Playlist here: ow.ly/PHjEN

ความคิดเห็น • 67

  • @foadsf
    @foadsf 6 ปีที่แล้ว +61

    this guy is awsome. I wish I had this level of entertaining presentation skills.

  • @pleaserespond3984
    @pleaserespond3984 7 ปีที่แล้ว +57

    Pedantic note: sRGB is like that not just because "cathode ray tubes worked like that", the reason is that human eyes are more sensitive to differences in dim light than in bright light, so the sRGB curve gives you more precision on the low end and less on the high end. If we switched to 16-bit floats per channel, then you could use a linear RGB colour space (and float encoding automatically gives you more precision for smaller values), but at the cost of doubling our memory requirements. Back in the day we were lucky to have enough space even for 8 bits per channel and sometimes had to quantise down to 5/6/5 bits for red, green and blue channel respectively (6 for green because your eyes are most sensitive to green). So sRGB follows CRTs because the curve for CRTs was already optimised for use in memory-restricted scenarios (like desktop and laptop PCs until about 5 years ago, or TV signal bandwidth back in the day). If you want to save yourself pain and have the memory for it, by all means use 16 or even 32 bit floats per channel in linear RGB for your rendering calculations, then convert the image to sRGB as a final display step.

    • @user-gp7jv5vy1k
      @user-gp7jv5vy1k 8 หลายเดือนก่อน

      meow didnt read meow

  • @MrCk0212
    @MrCk0212 9 ปีที่แล้ว +34

    Really don't know there are so many theories behind a colormap. Very informative. Thanks!

  • @xdazamx
    @xdazamx 5 ปีที่แล้ว +11

    Such a good presentation on what one would probably consider a dry topic. From a colourblind perspective, thanks for considering the 4.5% of us who often do really stupid things to be able to tell, often unsucessefully, what on earth we're looking at.

  • @VictorHCandido
    @VictorHCandido 5 ปีที่แล้ว +22

    This talk is amazing! There's lots of high level content and the jokes killed me every time! Please, do more talks on anything, lol. TYVM

  • @HeltonMoraes
    @HeltonMoraes 5 ปีที่แล้ว +8

    These guys definitely know their business... Thanks for the excellent explanations!

  • @nathanielsmith2547
    @nathanielsmith2547 9 ปีที่แล้ว +72

    ERRATA: I just realized that in the diagrams showing the XYZ colorspace at around 6:00 in the video, the labels on the "X" and "Y" axes are accidentally swapped -- the one going up should be labeled "Y", and the one going down and to the right should be labeled "X". My apologies if this confused anyone.

    • @hamsterpoop
      @hamsterpoop 6 ปีที่แล้ว +28

      This changes everything. I've been living a lie.

    • @acobolew1
      @acobolew1 6 ปีที่แล้ว +4

      No problem. But was wondering why the axes were left-landed.

    • @Josh-qi4fq
      @Josh-qi4fq 4 ปีที่แล้ว +2

      It’s ok. We’ll just pretend z=-z.

    • @NonTwinBrothers
      @NonTwinBrothers 8 หลายเดือนก่อน +1

      My left hand enjoyed it's time in the spotlight

  • @CharlBotha
    @CharlBotha 9 ปีที่แล้ว +11

    Congratulations, fantastic work and great talk!!

  • @AndreasMueller
    @AndreasMueller 9 ปีที่แล้ว +14

    This talk is awesome!

  • @QingkaiKong
    @QingkaiKong 8 ปีที่แล้ว +3

    This is a great talk! Very clear and useful, I will switch to the new colormap.

  • @benjaminblumer352
    @benjaminblumer352 8 ปีที่แล้ว +5

    Sounds like great work. And the talk is done really well. Thanks!

  • @MrSirCorion
    @MrSirCorion 9 ปีที่แล้ว +4

    Great talk and the work on colors is awesome!

  • @edwnx0
    @edwnx0 6 ปีที่แล้ว +4

    kinda wish they had more time to the full presentation. i'm a graphic designer and also a nerd and it's very interesting hearing the reasoning behind the color choices.

  • @igotnoluck
    @igotnoluck 9 ปีที่แล้ว +4

    Great presentation !!!!

  • @jabelsjabels
    @jabelsjabels 8 ปีที่แล้ว +4

    wow, great talk! interesting, informative, entertaining.

  • @L0j1k
    @L0j1k 6 ปีที่แล้ว +5

    Nerd programmer humour is alive and well in the new millennium!

  • @WalterReade
    @WalterReade 9 ปีที่แล้ว +3

    Very informative. Thanks!

  • @duto_guerra
    @duto_guerra 6 ปีที่แล้ว +2

    Very cool talk, thanks a lot

  • @JohnThrowerHome
    @JohnThrowerHome 8 ปีที่แล้ว +3

    Well played.

  • @uuadad
    @uuadad 9 ปีที่แล้ว +1

    I like the colour map being such that green-red colour perception is not an issue. All too often I cannot discriminate. The 'viridis' one looks fine to me.

  •  8 ปีที่แล้ว +2

    awesome!

  • @joris4284
    @joris4284 7 ปีที่แล้ว +9

    Very interesting talk. However, I have a question: what would be the "ideal" colormap for a person not being colorblind, and not having the need for a colormap that looks good printed in grey??

    • @edwnx0
      @edwnx0 6 ปีที่แล้ว +3

      the same one.

    • @zamazalotta
      @zamazalotta 5 ปีที่แล้ว +1

      @@edwnx0 why?

    • @mateuszkonieczny3681
      @mateuszkonieczny3681 2 ปีที่แล้ว +1

      Search for example for "Turbo, An Improved Rainbow Colormap for Visualization" which dropped requirement to convert well to grayscale, what allowed noticeable improvements.

  • @hardik1993ful
    @hardik1993ful 7 ปีที่แล้ว +1

    great talk...

  • @leadrevolver
    @leadrevolver 2 ปีที่แล้ว

    That's a really good one

  • @josephbarranco2033
    @josephbarranco2033 6 ปีที่แล้ว +4

    Any thoughts on the best "default" diverging color maps? In theory, one would use a diverging color map if there is a special value (say zero) in the data and you want to have separate colors for values on either side. For example, if I was doing a simulation of convection and was plotting the vertical velocity, I may want positive (upward) velocities with a reddish color map and downward (negative) velocities with a blueish color map. The main disadvantage is that printing out in gray essentially takes the absolute value of the data (not quite, but close enough) and so you preserve magnitude of velocity, but lose all info on sign. All of this, of course, is avoided with a sequential color map (like viridis), but then there isn't the instant recognition that upward (positive) and downward (negative) are different. As Kenneth Moreland states: "The middle point serves as much to highlight the two extremes as it does to highlight itself. In effect, the divergent color map allows us to quickly identify whether values are near extrema and which extrema they are near." But maybe the printing to gray issue should be a more dominant concern.

    • @ForTheWin2007
      @ForTheWin2007 5 ปีที่แล้ว

      Google "What is a “good” palette for divergent colors" and go for the 1st link

  • @al3ucard
    @al3ucard 8 ปีที่แล้ว +5

    The colormap great, but the name... Inferno, Plasma, Magma, viridis? Please change it to Venom and get your shit together :P.

    • @jsalsman
      @jsalsman 6 ปีที่แล้ว

      Venom is too close to people's fear of spiders.

  • @kiranhosur9167
    @kiranhosur9167 6 ปีที่แล้ว +1

    Very Informative

  • @sageinit
    @sageinit 6 ปีที่แล้ว

    The 'to brain' part is actually four dimensional, as some recent research has shown, the neurons in the retina 'transcode' the three dimensional data to four dimensional data to save bandwidth on the optic nerve. Unfortunately I can't find the paper on it anymore. :|

  • @gogyoo
    @gogyoo ปีที่แล้ว

    Just here to say I like "tag10" for classification tasks.

  • @sailawayteam
    @sailawayteam 5 ปีที่แล้ว +1

    Great presentation indeed! But this case also shows that perfect in theory does not necessarily mean perfect in reality. I think matlab did better job even if their map isn't "perfect" in theory. Viridis produces unbelievanle sickly colors. And what value is there to argue that a color map is good or bad by using them in photographs or paintings? Photographs are not height maps, not by any means.

  • @alantesla
    @alantesla 8 ปีที่แล้ว +1

    Great presentation. Is there made a publication on the work?

  • @Ryan-sr9zv
    @Ryan-sr9zv 3 ปีที่แล้ว

    Blue yellow dress: Actually measuring the raw RGB reveals that there is a difference in the TH-cam image at least. 100 136 250 vs. 129 145 183

  • @Neceros
    @Neceros 9 ปีที่แล้ว

    Heh. I also came across that lightning brain while looking for an image recently.

  • @gz6616
    @gz6616 7 ปีที่แล้ว +3

    how about the divergent (or divergence) colormaps? I've been using blue-white-red for the whole time.

    • @ForTheWin2007
      @ForTheWin2007 5 ปีที่แล้ว

      Google "What is a “good” palette for divergent colors" and go for the 1st link

  • @scipyconferencescientificp7936
    @scipyconferencescientificp7936 8 ปีที่แล้ว

    Like this talk? See more like it at the SciPy 2016 Conference, to be held July 11-17, 2016 in Austin, Texas. More details at the conference website: scipy2016.scipy.org.

  • @MarkJay
    @MarkJay 7 ปีที่แล้ว

    Interesting!

  • @SumiaDIY
    @SumiaDIY หลายเดือนก่อน

    6:53 "if you've spent any time with --" with what? I didn't get the word and the youtube generated captions say 'koolaid' LOL. If someone could clarify, I'd really appreciate it, thanks!!

  • @Puleczech
    @Puleczech 4 ปีที่แล้ว

    Thanks for not Anish Kapooring the colormap as Matlab did!

  • @adammaj1
    @adammaj1 10 หลายเดือนก่อน

    Why multicolor gradient if the data is od one type? IMHo monochrome gradient would be better as default

  • @jezusbloodie
    @jezusbloodie 27 วันที่ผ่านมา

    Long shot, but if anyone reads this and happens to know what publication the image at 9:50 with the neural mapping of visual part of the brain comes from of can help me along the way to find it, please let me know. Thank you kindly in advance

  • @HeltonMoraes
    @HeltonMoraes 5 ปีที่แล้ว +1

    Where does the figure in 9:14 comes from?

  • @LukaszWiklendt
    @LukaszWiklendt 9 ปีที่แล้ว +1

    Surprising there is no mention of CubeHelix.

    • @TalGalili
      @TalGalili 8 ปีที่แล้ว +2

      I just checked CubeHelix. It seems to be fun if you see colors or no color (Desaturated). It looks bad for: Green-Blind (Deuteranopia), Red-Blind (Protanopia), Blue-Blind (Tritanopia).

    • @legesflute
      @legesflute 2 ปีที่แล้ว +1

      Uhm, at 15:00 I see something that appears quite similar, both visually and conceptually. But sure, no explicit mention :)

  • @gholamrezadar
    @gholamrezadar ปีที่แล้ว

    Viridis: Origins (2015)

  • @someoneelse3921
    @someoneelse3921 6 ปีที่แล้ว

    Can't copyright a selection of colours.

  • @dhimmel
    @dhimmel 9 ปีที่แล้ว

    Can't wait to get my hands on viridis and see for myself

  • @anibalnunez9087
    @anibalnunez9087 3 ปีที่แล้ว +1

    th-cam.com/video/xAoljeRJ3lU/w-d-xo.html because green....
    gets me every time xD

  • @Haz2288
    @Haz2288 8 ปีที่แล้ว

    plt.style.use('ggplot')

  • @zamazalotta
    @zamazalotta 5 ปีที่แล้ว

    Would have been more convincing if he had tested the proposed colormap in some real data application. I have not seen anyone using a colormap for a photo before.

    • @ForTheWin2007
      @ForTheWin2007 4 ปีที่แล้ว +1

      Plenty of examples if you search for "end the rainbow" on Google or Twitter

  • @simonmoore8776
    @simonmoore8776 2 ปีที่แล้ว

    Sound quality is terrible

  • @casperdewith
    @casperdewith 12 วันที่ผ่านมา

    18:20 _You can’t name a thing and then kill it._