Creating Icons
Set background color to fully transparent, hide axis
Save the plot
Copy the custom icon from the Finder's info panel for the saved file
Open Preview.app, File > New from clipboard
Save as .icns