|
68 | 68 | # ~~~~~~~~~~~~~~~
|
69 | 69 | #
|
70 | 70 | # For example to place the text coordinates in fractional axes
|
71 | | -# coordinates, one could do: |
| 71 | +# coordinates, one could do :: |
72 | 72 |
|
73 | 73 | fig, ax = plt.subplots()
|
74 | 74 | ax.scatter(3, 1, s=20)
|
|
158 | 158 | # `~.Axes.text` takes a *bbox* keyword argument, which draws a box around the
|
159 | 159 | # text::
|
160 | 160 | #
|
161 | | -# t = ax.text( |
162 | | -# 0, 0, "Direction", ha="center", va="center", rotation=45, size=15, |
163 | | -# bbox=dict(boxstyle="rarrow,pad=0.3", fc="cyan", ec="b", lw=2)) |
| 161 | +# t = ax.text(0, 0, "Direction", ha="center", va="center", rotation=45, |
| 162 | +# size=15, bbox=dict(boxstyle="rarrow,pad=0.3", fc="cyan", ec="b", lw=2) |
| 163 | +# ) |
164 | 164 | #
|
165 | 165 | # The patch object associated with the text can be accessed by::
|
166 | 166 | #
|
|
405 | 405 | # ~~~~~~~~~~~~~~~~~~~~~~
|
406 | 406 | #
|
407 | 407 | # You can use a custom box style. The value for the ``boxstyle`` can be a
|
408 | | -# callable object in the following forms.:: |
| 408 | +# callable object in the following forms.:: |
409 | 409 | #
|
410 | 410 | # def __call__(self, x0, y0, width, height, mutation_size,
|
411 | 411 | # aspect_ratio=1.):
|
|
0 commit comments