Get the subplot row and column numbers: (``n_rows, n_cols, row_start, row_stop, col_start, col_stop``)
(self)
| 461 | return rows, cols, self.num1, self.num2 |
| 462 | |
| 463 | def get_rows_columns(self): |
| 464 | """ |
| 465 | Get the subplot row and column numbers: |
| 466 | (``n_rows, n_cols, row_start, row_stop, col_start, col_stop``) |
| 467 | """ |
| 468 | gridspec = self.get_gridspec() |
| 469 | nrows, ncols = gridspec.get_geometry() |
| 470 | row_start, col_start = divmod(self.num1, ncols) |
| 471 | if self.num2 is not None: |
| 472 | row_stop, col_stop = divmod(self.num2, ncols) |
| 473 | else: |
| 474 | row_stop = row_start |
| 475 | col_stop = col_start |
| 476 | return nrows, ncols, row_start, row_stop, col_start, col_stop |
| 477 | |
| 478 | def get_position(self, figure, return_all=False): |
| 479 | """Update the subplot position from ``figure.subplotpars``. |
no test coverage detected