fixed inconsistent local name for matplotlib