Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Increase a bounding box by a fractional amount
ResourceFunction["EnlargeBoundingBox"][{{l,r},{b,t}},frac] enlarges the given bounding box by the fraction frac of its width and height. | |
ResourceFunction["EnlargeBoundingBox"][{{l,r},{b,t}},{{dl,dr},{db,dt}}] enlarges the given bounding box by the given amount on each side. |
Basic usage:
In[1]:= |
Out[1]= |
Feed in Graphics objects:
In[2]:= |
Out[2]= |
Adjust each side, increasing the extent as we go from left to right and then bottom to top:
In[3]:= |
Out[3]= |
In[4]:= |
Out[4]= |
EnlargeBoundingBox also works on 3D graphics:
In[5]:= |
Out[5]= |
Create a zoom effect:
In[6]:= |
Out[6]= |
This work is licensed under a Creative Commons Attribution 4.0 International License