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