Updates when class selection changes and displays many graphs