How can I show one window when i use sympy plot_implicit?

时间:2017-08-06 07:31:04

标签: python sympy

I have a question about plot_implicit windows.

when I type this:

from sympy import *
from sympy.plotting import *

r1, r2 = symbols('r1 r2')
f = Function('f')
f = 1/r1 - 1/r2

p0=plot_implicit(Eq(f,1),(r1,-1,1),(r2,-1,1))
p1=plot_implicit(Eq(f,2),(r1,-1,1),(r2,-1,1))
p0.extend(p1)
p0.show()

3 windows are opened. (p0 graph, p1 graph, p0&p1 graph)

I want to show graph only with two functions.

How can I solve this?

1 个答案:

答案 0 :(得分:0)

使用show=False的{​​{1}},只显示最后一个数字:

plot_implicit