example plot with error bars

This is an example created to study issue #37.