Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Get information about the rendered form of a Graphics object
ResourceFunction["GraphicsInformation"][g] returns sizing information about the graphics object g. | |
ResourceFunction["GraphicsInformation"][{g1,g2,…}] returns sizing information about the graphics objects g1,g2,…. |
"BasePlotRange" | the unpadded plot range |
"ImagePadding" | the {{left,right},{bottom,top}} image padding |
"ImagePaddingSize" | the total {horizontal,vertical} image padding |
"ImageSize" | the actual image size |
"PlotRange" | the actual plot range |
"PlotRangeSize" | the actual size of the PlotRange portion of the graphic |
Generate a plot of Sin[x]:
In[1]:= |
Out[1]= |
Obtain information about the plot:
In[2]:= |
Out[2]= |
Generate several plots:
In[3]:= |
Out[3]= |
Obtain sizing information for each of the plots:
In[4]:= |
Out[4]= |
The total image padding used in each plot:
In[5]:= |
Out[5]= |
This work is licensed under a Creative Commons Attribution 4.0 International License