update matlibplot example
add documentation string to matplotlib example