Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Plot a set of inequalities distinguishing between different regions
ResourceFunction["InequalityPlot"][ineqs,x] plots a set of inequalities distinguishing between different regions and choosing ranges automatically. | |
ResourceFunction["InequalityPlot"][ineqs,{x,x0,xf}] plots a set of inequalities with one variable distinguishing between different regions from x0 to xf. | |
ResourceFunction["InequalityPlot"][ineqs,{x,y}] plots a set of inequalities with two independent variables. | |
ResourceFunction["InequalityPlot"][ineqs,{x,x0,xf},{y,y0,yf}] plots a set of inequalities with two variables from x0 to xf and from y0 to yf. | |
ResourceFunction["InequalityPlot"][ineqs,{x,y,z}] plots a set of inequalities with three independent variables. | |
ResourceFunction["InequalityPlot"][ineqs,{x,x0,xf},{y,y0,yf},{z,z0,zf}] plots a set of inequalities with three variables from x0 to xf, from y0 to yf and from z0 to zf. |
Inequalities in one dimension:
| In[1]:= |
| Out[1]= | ![]() |
Inequalities in two dimensions:
| In[2]:= |
| Out[2]= | ![]() |
Intersection of a couple of lines:
| In[3]:= |
| Out[3]= | ![]() |
Dashed lines represent strict inequalities like Less and Greater:
| In[4]:= |
| Out[4]= | ![]() |
Without an explicit interval, the range is chosen automatically:
| In[5]:= |
| Out[5]= | ![]() |
Regions generated by several lines:
| In[6]:= |
| Out[6]= | ![]() |
See many regions defined by two parabolas:
| In[7]:= | ![]() |
| Out[7]= | ![]() |
Higher degree region:
| In[8]:= | ![]() |
| Out[8]= | ![]() |
Limits to infinity:
| In[9]:= |
| Out[9]= | ![]() |
Specify the scaling with ScalingFunctions:
| In[10]:= |
| Out[10]= | ![]() |
Visualize a 3D region:
| In[11]:= | ![]() |
| Out[11]= | ![]() |
Without explicit intervals:
| In[12]:= | ![]() |
| Out[12]= | ![]() |
Three intersecting cylinders:
| In[13]:= | ![]() |
| Out[13]= | ![]() |
Region defined by planes:
| In[14]:= | ![]() |
| Out[14]= | ![]() |
Region defined by two paraboloids:
| In[15]:= | ![]() |
| Out[15]= | ![]() |
Higher order region:
| In[16]:= |
| Out[16]= | ![]() |
Random 3D region:
| In[17]:= | ![]() |
| Out[17]= | ![]() |
Do not show legends:
| In[18]:= |
| Out[18]= | ![]() |
Do not show tooltips:
| In[19]:= |
| Out[19]= | ![]() |
A Venn diagram:
| In[20]:= | ![]() |
| In[21]:= | ![]() |
| In[22]:= |
| Out[22]= | ![]() |
Define inequalities for overlapping disks which create random subregions:
| In[23]:= |
| In[24]:= |
| In[25]:= | ![]() |
Use "AllSubregions"→True to include distinct colors for each subregion in the plot:
| In[26]:= | ![]() |
| Out[26]= | ![]() |
Random 3D region:
| In[27]:= | ![]() |
| Out[27]= | ![]() |
Specify the contour styles:
| In[28]:= | ![]() |
| Out[28]= | ![]() |
Change the styles for the mesh:
| In[29]:= | ![]() |
| Out[29]= | ![]() |
An inequality over a region:
| In[30]:= | ![]() |
| Out[30]= | ![]() |
Modify the plot style:
| In[31]:= | ![]() |
| Out[31]= | ![]() |
A region between curves:
| In[32]:= |
| Out[32]= | ![]() |
Compute the area using the resource function AreaBetweenCurves:
| In[33]:= |
| Out[33]= |
Control the region included (sometimes a particular intersection does not exist):
| In[34]:= |
| In[35]:= | ![]() |
| Out[35]= | ![]() |
See all subsets in a grid:
| In[36]:= | ![]() |
| Out[36]= | ![]() |
Wolfram Language 13.0 (December 2021) or above
This work is licensed under a Creative Commons Attribution 4.0 International License