A subclass of plate to writing text using grid coordinates. Any ``**kwargs`` are passed through to :class:`PGM.Plate`. :param x: The x-coordinate of the text in *model units*. :param y: The y-coordinate of the text. :param label:
(self, x, y, label, fontsize=None)
| 336 | return None |
| 337 | |
| 338 | def add_text(self, x, y, label, fontsize=None): |
| 339 | """ |
| 340 | A subclass of plate to writing text using grid coordinates. Any |
| 341 | ``**kwargs`` are passed through to :class:`PGM.Plate`. |
| 342 | |
| 343 | :param x: |
| 344 | The x-coordinate of the text in *model units*. |
| 345 | |
| 346 | :param y: |
| 347 | The y-coordinate of the text. |
| 348 | |
| 349 | :param label: |
| 350 | A string to write. |
| 351 | |
| 352 | :param fontsize: (optional) |
| 353 | The fontsize to use. |
| 354 | |
| 355 | """ |
| 356 | |
| 357 | text = Text(x=x, y=y, label=label, fontsize=fontsize) |
| 358 | self._plates.append(text) |
| 359 | |
| 360 | return None |
| 361 | |
| 362 | def render(self, dpi=None): |
| 363 | """ |