@@ -1391,9 +1391,10 @@ def f(x,y):
1391
1391
raise ValueError ("fill=%s is not supported" % options ['fill' ])
1392
1392
1393
1393
1394
- @options (frame = False , axes = True , legend_label = None , aspect_ratio = 1 )
1395
- def region_plot (f , xrange , yrange , plot_points = 100 , incol = 'blue' , outcol = None , bordercol = None ,
1396
- borderstyle = None , borderwidth = None , alpha = 1 , ** options ):
1394
+ @options (plot_points = 100 , incol = 'blue' , outcol = None , bordercol = None ,
1395
+ borderstyle = None , borderwidth = None , frame = False , axes = True ,
1396
+ legend_label = None , aspect_ratio = 1 , alpha = 1 )
1397
+ def region_plot (f , xrange , yrange , ** options ):
1397
1398
r"""
1398
1399
``region_plot`` takes a boolean function of two variables, `f(x, y)`
1399
1400
and plots the region where f is True over the specified
@@ -1657,6 +1658,14 @@ def region_plot(f, xrange, yrange, plot_points=100, incol='blue', outcol=None, b
1657
1658
from warnings import warn
1658
1659
import numpy
1659
1660
1661
+ plot_points = options ['plot_points' ]
1662
+ incol = options .pop ('incol' )
1663
+ outcol = options .pop ('outcol' )
1664
+ bordercol = options .pop ('bordercol' )
1665
+ borderstyle = options .pop ('borderstyle' )
1666
+ borderwidth = options .pop ('borderwidth' )
1667
+ alpha = options .pop ('alpha' )
1668
+
1660
1669
if not isinstance (f , (list , tuple )):
1661
1670
f = [f ]
1662
1671
@@ -1675,9 +1684,9 @@ def region_plot(f, xrange, yrange, plot_points=100, incol='blue', outcol=None, b
1675
1684
if neqs and not bordercol :
1676
1685
bordercol = incol
1677
1686
if not f :
1678
- return implicit_plot (feqs [0 ], xrange , yrange , plot_points = plot_points ,
1679
- fill = False , linewidth = borderwidth ,
1680
- linestyle = borderstyle , color = bordercol , ** options )
1687
+ return implicit_plot (feqs [0 ], xrange , yrange , fill = False ,
1688
+ linewidth = borderwidth , linestyle = borderstyle ,
1689
+ color = bordercol , ** options )
1681
1690
f_all , ranges = setup_for_eval_on_grid (feqs + f ,
1682
1691
[xrange , yrange ],
1683
1692
plot_points )
0 commit comments