Skip to main content
All CollectionsCoursesCourse Development
Using multiple plots in an exercise
Using multiple plots in an exercise

Learn how to effectively show multiple plots in coding exercises.

Amy Peterson avatar
Written by Amy Peterson
Updated over a week ago

Plotting is a great way to extract information from data and we often find cases where showing multiple plots is beneficial to the understanding of a concept.ย 

In order to encourage students to actually look at the plots they have created, DataCamp enforces a rule that you may only include one plot per coding exercise, or one plot per step of an iterative or sequential exercise.

That is, if you want to include more than one plot in an exercise, you need to use one of the multi-step exercise types.

Iterative exercises

Iterative exercises are designed to iterate over the same concept and let learners practice a skill several times. In the case of plotting multiple plots, it can be used to demonstrate different plot types with slightly modified code. Students could play with different arguments within a plotting function and see how it affects the output.

Sequential exercises

Sequential exercises are designed for code that builds on itself and it allows students to view the output of one step before proceeding to the next. In the case of plotting multiple plots, it can be used to walk through the creation of a plot or showcase various types of plots. Sequential exercises also have the option of including a Multiple Choice step, which can be used to quiz the students about the interpretation of a plot.
โ€‹

Examples

Did this answer your question?