_Originally posted by @jklymak in https://github.com/matplotlib/matplotlib/issues/12239#issuecomment-424103592_