migrating from matplotlib to pygal