Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Test if an expression is a graphics directive
ResourceFunction["GraphicsDirectiveQ"][expr] test if expr is a graphics directive. |
Test common directives:
In[1]:= |
Out[1]= |
In[2]:= |
Out[2]= |
Test a more complicated directive:
In[3]:= |
Out[3]= |
A plot:
In[4]:= |
Out[4]= |
Extract directives from the plot:
In[5]:= |
Out[5]= |
The directive for a sphere with glow:
In[6]:= |
Out[6]= |
Pass directives from the previous plot to another plot:
In[7]:= |
Out[7]= |
Create a plot containing some directives:
In[8]:= |
Out[8]= |
Delete the directives within the plot:
In[9]:= |
Out[9]= |
Create a plot using a PlotTheme:
In[10]:= |
Out[10]= |
Extract directives that appear in the previous output that were generated automatically by the PlotTheme:
In[11]:= |
Out[11]= |
Create a plot whose output contains some directives:
In[12]:= |
Out[12]= |
Look at the structure of the code of the plot, showing explicitly only directives:
In[13]:= |
Out[13]= |
This work is licensed under a Creative Commons Attribution 4.0 International License