first part of matplotlib tutorial