Skip to content

Commit c7433c4

Browse files
committed
Fix doctest
1 parent d041554 commit c7433c4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sympy/plotting/plot_implicit.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def plot_implicit(expr, x_var=None, y_var=None, adaptive=True, depth=0,
272272
:format: doctest
273273
:include-source: True
274274
275-
>>> plot_implicit(Eq(x**2 + y**2, 5))
275+
>>> p1 = plot_implicit(Eq(x**2 + y**2, 5))
276276
277277
With the range for the symbols:
278278
@@ -281,7 +281,8 @@ def plot_implicit(expr, x_var=None, y_var=None, adaptive=True, depth=0,
281281
:format: doctest
282282
:include-source: True
283283
284-
>>> plot_implicit(Eq(x**2 + y**2, 3), (x, -3, 3), (y, -3, 3))
284+
>>> p2 = plot_implicit(
285+
... Eq(x**2 + y**2, 3), (x, -3, 3), (y, -3, 3))
285286
286287
With depth of recursion as argument:
287288
@@ -290,7 +291,7 @@ def plot_implicit(expr, x_var=None, y_var=None, adaptive=True, depth=0,
290291
:format: doctest
291292
:include-source: True
292293
293-
>>> plot_implicit(
294+
>>> p3 = plot_implicit(
294295
... Eq(x**2 + y**2, 5), (x, -4, 4), (y, -4, 4), depth = 2)
295296
296297
Using mesh grid and not using adaptive meshing:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy