Fix plots in Moodle 2.6.