Home » Technical Topics » AI Visualization

How to Make Glowing Visualizations – Literally

How to Make Glowing Visualizations – Literally

I explain here how to do it in Excel. But the principle is general. You can produce this type of visualization with other tools. There are many features in Excel that allow you to generate marketing-style pictures. I never really used them, as the result can be cheesy. If overused, you end up with material that looks like advertising from a Casino, or like the “old world wide web”, where blinking fonts and documents with neon colors were popular. But I recently decided to give it a try again, using extreme moderation. I believe my experiment was successful. I will leave it to the reader to have a final say about it.

Previous Attempt

Before showing what I believe is a good use of the Excel “cheesy features”, let me show you my first attempt, several years ago. It backfired: some readers complained about the unnecessary bells and whistles. And it is true that in this case (see Figure 1), it serves no purpose. I haven’t used this type of style (or lack of) ever since.

In the next section, I discuss a different example (Figure 2), very recent, where the “glow” feature, used in moderation, serves a real, useful purpose and helps understand the chart.

bad1
Figure 1: Bad example of chart

A Good Example

In this case, the chart (see Figure 2) exhibits four clusters. The context is related to supervised learning. The purpose is to illustrate the new concept of dual confidence region. I describe it in my previous article, here, and in details in my new book, available here. In this article, I focus on the visual aspect only. I could have used contour maps instead. But it works best if you use a different color for each cluster.

PB-ci
Figure 2: a good use of the “glow” effect

The “glow” effect immediately gives you an idea of what a 90% confidence region is. Each cluster has 100 points, obtained by simulation. The blue is darker close to the center of the blue cluster (same for all colors). The cluster overlap is well rendered. There is a somewhat greenish area where yellow and blue overlap. Indeed, yellow + blue = green.

You could produce 100 versions of Figure 2, using a larger and larger circle around each dot, and embed them into a video. It would illustrate how supervise clustering works, in a way very similar to my previous video, featured here.

How to Do it?

In Excel, right-click on one of the four clusters in the chart — the one you want to edit. Then select “Format data series” in the drop down menu that pops up.

Select the option “glow” highlighted in blue, in Figure 3. Play with the parameters.

glow
Figure 3: glowing effect in Excel

In Figure 2, I used size = 11 pt, and transparency is set to 95%. In Figure 4, the only difference is the size parameter, now set to 30 pt. It determines the size of the circles around each point, in the glow effect. Keep transparency close to 95%. If you try 10% for the transparency, now you are going to have a truly very cheesy plot!

good2
Figure 4: same as Figure 2, with larger “size” parameter

About the Author

Vincent Granville is a machine learning scientist, author and publisher. He was the co-founder of Data Science Central (acquired by TechTarget) and most recently, founder of Machine Learning Recipes.