fix gallery issues related to release

issues: fixes #1513 fixes #1523 

repairs tutorial gallery build, fixes "out of sync" mpl examples. 
 
`p.segment`