def get_mpl_patches_texts(self, properties_func=None,<EOL>text_offset=<NUM_LIT>,<EOL>origin=<NUM_LIT:1>):
from .mpl_helper import as_mpl_artists<EOL>patches, txts = as_mpl_artists(self, properties_func,<EOL>text_offset,<EOL>origin=origin)<EOL>return patches, txts<EOL>
Often, the regions files implicitly assume the lower-left
corner of the image as a coordinate (1,1). However, the python
convetion is that the array index starts from 0. By default
(``origin=1``), coordinates of the returned mpl artists have
coordinate shifted by (1, 1). If you do not want this shift,
use ``origin=0``.