fix figure.code example