Group Abstract Group Abstract

Message Boards Message Boards

The Scoville scale of peppers (151st birth anniversary of W.L. Scoville)

Attachments:
8 Replies

Nice interactive ListLogPlot! Thanks for sharing it, Jofre.

I found it interesting that pepper varieties that take longer to mature tend to score higher SHU values:

ListLogPlot[
 Table[Normal[GroupBy[peppers, "type"][i][All, Tooltip[{#days, 1 + #scoville}, #variety] &]], {i, 3}], 
 PlotRange -> All, 
 AxesLabel -> {Style["Days to Mature", 12, Bold], Style["Scoville heat units
    (SHU)", 12, Red, Bold]}, 
 PlotMarkers -> {Red, Darker@Green, Orange}, 
 PlotLegends -> {"Hot", "Sweet", "Mild"}, ImageSize -> 500]

DaysVSSHU

Another observation made is that the hot type of peppers are predominantly reddish:

Table[Labeled[ImageCollage[Normal[GroupBy[peppers, "type"][i][All, "image"]]], {"Hot", "Sweet", "Mild"}[[i]]], {i, 3}]

types

Table[{"Hot", "Sweet", "Mild"}[[i]] -> 
  Part[DominantColors[
    ImageCollage[RemoveAlphaChannel[#, Transparent] & /@ RemoveBackground /@ Normal[GroupBy[peppers, "type"][i][All, "image"]]], 3], 2 ;; 3], {i, 3}]

Dominant Colors

And sweet peppers are best suited for salads as their WordCloud of comments indicates:

Table[Labeled[
  WordCloud[
   DeleteStopwords@StringJoin[Riffle[Normal[GroupBy[peppers, "type"][i][All, "comments"]], " "]]], {"Hot", "Sweet", "Mild"}[[i]]], {i, 3}]

Word Cloud

POSTED BY: Bernat Espigulé
POSTED BY: Bianca Eifert

Oh, thank you for clarifying it and sharing this post. These GIF animations are screen captures made with LICEcap.

POSTED BY: Bernat Espigulé
POSTED BY: Imre Pazsit

This is extremely beautiful and appetizing :) . However, the animation does not work for me. I have downloaded both the notebook and the m file in the same directory, run the notebook, but there is no animation, only a static pic of the pepper chart. see the attached screen shot. Am I overlooking something very trivial? Another question, very outsider-ish - do you have a version which can be shared on community pages? I have lots of friends who love hot chili peppers, but do not use Mathematica (probably do not have even a cdf reader). Thanks!!

POSTED BY: Imre Pazsit

Check out this Instant Knockout review and the dataset peppers.m in order to explore the interactive visualization.

Attachments: ScovilleScale.nb peppers.m

I know it's a little late - and I'm not sure if you'll read this comment - but thanks so much for posting this! I'm a chili enthusiast myself so this is especially interesting to me! Can't wait to give it a try.

I see. Bernat, it is me who thanks - it was most useful! Not only for understanding it, but also for the tip on the LICEcap screen capture. So far I only used QuickTime for dynamic screen capture, but it does not make GIF animations that are suitable for inclusion in html files. I downloaded and tested LICEcap, and could reconstruct the animation. I really appreciate your help!

POSTED BY: Imre Pazsit

@Imre Pázsit have you checked if Tooltip works when the mouse hovers over one of these pepper icons? This is not an animation but tooltips should work in Mathematica or CDF player. Unfortunately CloudCDF does NOT support images on tooltips yet. So the CDF player is still needed.

POSTED BY: Bernat Espigulé
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard