tracking down a plotting error