Show More
@@ -57,9 +57,17 b' class PylabMagics(Magics):' | |||||
57 |
|
57 | |||
58 | In [2]: set_matplotlib_formats('pdf', 'svg') |
|
58 | In [2]: set_matplotlib_formats('pdf', 'svg') | |
59 |
|
59 | |||
60 | See the docstring of `IPython.display.set_matplotlib_formats` and |
|
60 | The default for inline figures sets `bbox_inches` to 'tight'. This can | |
|
61 | cause discrepancies between the displayed image and the identical | |||
|
62 | image created using `savefig`. This behavior can be disabled using the | |||
|
63 | `%config` magic:: | |||
|
64 | ||||
|
65 | In [3]: %config InlineBackend.print_figure_kwargs = {'bbox_inches':None} | |||
|
66 | ||||
|
67 | In addition, see the docstring of | |||
|
68 | `IPython.display.set_matplotlib_formats` and | |||
61 | `IPython.display.set_matplotlib_close` for more information on |
|
69 | `IPython.display.set_matplotlib_close` for more information on | |
62 |
changing |
|
70 | changing additional behaviors of the inline backend. | |
63 |
|
71 | |||
64 | Examples |
|
72 | Examples | |
65 | -------- |
|
73 | -------- |
General Comments 0
You need to be logged in to leave comments.
Login now