Learning>Rawgraphs 1.0

How to make a contour plot (RAWGraphs 1.0)

3 min.dispersion

How to make a contour plot (RAWGraphs 1.0)

A contour plot shows the estimated density of point clouds, which is especially useful to avoid overplotting in large datasets.

GOAL OF THE TUTORIAL: comparing wheater condition (mean temperature) in Paris during the World War II, from 1944 to 1945.

01. Load your data

The first step is to copy and paste your data into RAWGraphs.

The dataset must contain at least two columns, one for the X Axis (in our case, Date) and one for the Y Axis (MeanTemp). 

Here you can see the dataset we are going to use:

You can also download the dataset through the link on the left of this post.

In few second you should see the green bar saying “429 records in your data have been successfully parsed!”

02. Choose the contour plot layout

After pasting your data, scroll down and select the “contour plot” visual model.

contour e1527504184759

03. Map your dimensions

The contour layout has two visual variables.

VARIABLE TYPE REQUIRED MULTIPLE DESCRIPTION
X Axis Number, date * The horizontal position of the points.
Y Axis Number, date * The vertical position of the points.


It’s time to map your data and create the visualization. On the left you have the list of dimensions in your dataset, on the right the available visual variable of the scatter plot layout.

Drag and drop the dimensions as following:

  • Date as X Axis;
  • MainTemp as Y Axis;

dimension contour

In this way we created a point for each movie in the dataset, disposing it on the cartesian plane according to its date and its mean temperature. 

04. Refine and export

To reach the final results we can customize the visualization with some parameters you can find next to the visualization.

For the scatterplot the options available are the following:

OPTION DESCRIPTION
Width Artboard width in pixels
Height Artboard height in pixels
Standard deviation A quantity expressing by how much the members of a group differ from the mean value for the group.
Colors applied to The possibility to apply colors to the stroke or to the fill of each curve.
Set origin at (0,0) If selected, the contour plot origin will be set at the zero value for both the axes. If not selected, origin will be set to the minimum value for the two axes.
colour scale List of uniques values in the dimension mapped as “color”. If set to ordinal, you can set a color for each value. If set to linear, the app will try to find the minimum and maximum value contained in the dimension, and then creating a gradient among those two values.


For the final results we have set the options as following:

  • Width to 940 pixels;
  • Height to 483 pixels;
  • Set standard deviation to 20;
  • Set color scale to ‘linear’;
  • Apply colors to “fill”;
  • Set colors as following: from rgb(223, 235, 247) to rgb(16, 64, 122);
  • Show points;

Here is the finished chart. You can export it in svg or png using the download function at the bottom of the page.

contour output

How to cite this guide

"How to make a contour plot (RAWGraphs 1.0)", by RAWGraphs Team. Licensed under CC BY-NC-SA 4.0. Accessed: November 08, 2021, from undefined

Copy to clipboard

Have you bumped into any issue while using the app?