When teaching Navigation I always used to demonstrate to students that switching on the Pitot Heat could move the compass by around 5 degrees, and emphasised that the compass was swung with the Pitot Heat ON. I again demonstrated this when teaching for the IMC rating.