Skip to content

Commit c712981

Browse files
committed
doc update
1 parent 1567180 commit c712981

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/cookbook.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Output pandas dataframe
3838
Output Matplotlib figure
3939
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4040

41-
Simply do not call ``matplotlib.pyplot.show``, directly save the figure to in-memory buffer and output the buffer
41+
Instead of using ``matplotlib.pyplot.show()``, to show matplotlib figure in PyWebIO, you need to save the figure to in-memory buffer fist and then output the buffer
4242
via :func:`pywebio.output.put_image`:
4343

4444
.. exportable-codeblock::

pywebio/output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1599,7 +1599,7 @@ def popup(title, content=None, size=PopupSize.NORMAL, implicit_close=True, closa
15991599
16001600
:param str title: The title of the popup.
16011601
:type content: list/str/put_xxx()
1602-
:param content: The content of the popup can be a string, the put_xxx() calls , or a list of them.
1602+
:param content: The content of the popup. Can be a string, the put_xxx() calls, or a list of them.
16031603
:param str size: The size of popup window. Available values are: ``'large'``, ``'normal'`` and ``'small'``.
16041604
:param bool implicit_close: If enabled, the popup can be closed implicitly by clicking the content outside
16051605
the popup window or pressing the ``Esc`` key. Default is ``False``.

0 commit comments

Comments
 (0)