Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Create markers carefully designed for creation of publication-quality plots
ResourceFunction["PolygonMarker"]["name"] returns a unit area Polygon describing the shape "name". |
|
ResourceFunction["PolygonMarker"][{p1,…,pn}] returns a unit area Polygon with shape described by points {p1,…,pn} and centroid at {0,0}. |
|
ResourceFunction["PolygonMarker"][shape, size] returns shape of the specified size. |
|
ResourceFunction["PolygonMarker"][shape, size, style] returns a Graphics object suitable for PlotMarkers where the style of shape is defined by style. |
|
ResourceFunction["PolygonMarker"][All] returns the list of names of predefined shapes. |
Create a polygon object of "TripleCross" type:
In[1]:= |
|
Out[1]= |
|
The centroid of the polygon is placed at {0,0}:
In[2]:= |
|
Out[2]= |
|
Visualize the polygon and its centroid:
In[3]:= |
|
Out[3]= |
|
Get the complete list of built-in named shapes:
In[4]:= |
|
Out[4]= |
|
Make a Grid of Buttons with the shapes for easy selection:
In[5]:= |
|
Out[5]= |
|
Filled markers that pick up PlotStyle and PlotTheme automatically:
In[6]:= |
|
Out[8]= |
|
Out[10]= |
|
Empty markers that pick up PlotStyle and PlotTheme automatically:
In[11]:= |
|
Out[13]= |
|
Out[15]= |
|
Filled markers with lighter filling colors:
In[16]:= |
|
Out[18]= |
|
Use the third argument of PolygonMarker to specify the coordinate(s) where the marker should be placed:
In[19]:= |
|
Out[19]= |
|
Construct a list plot directly from graphics primitives:
In[20]:= |
|
Out[23]= |
|
Construct a custom list plot where open plot markers have transparent faces for each other (but not for the lines):
In[24]:= |
|
Out[28]= |
|
Center markers that pick up PlotStyle and PlotTheme automatically:
In[29]:= |
|
Out[31]= |
|
Half-filled markers that pick up PlotStyle and PlotTheme automatically:
In[32]:= |
|
Out[34]= |
|
In[35]:= |
|
Out[37]= |
|
In[38]:= |
|
Out[40]= |
|
Contrast markers that pick up PlotStyle and PlotTheme automatically:
In[41]:= |
|
Out[43]= |
|
In[44]:= |
|
Out[46]= |
|
Create an auxiliary function that (approximately) converts a simple glyph into a set of points suitable for PolygonMarker:
In[47]:= |
|
Show a set of markers in use, including some created from glyphs:
In[48]:= |
|
Out[48]= |
|
Black-and-white plot, where the markers overlap considerably:
In[49]:= |
|
Out[50]= |
|
Use the resource functions RoundedPolygon and NotchedPolygon to make markers:
In[51]:= |
|
Out[51]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License