Colorbar with diamonds using diamondbar.gs |
Example usage:
'diamondbar -r -marg 0.1 -font 0.09 -fs 2'
This is the call used to plot the colorbar on the above example.
Options: -help - Pulls up this Help Page
-loc - Chooses location for the colorbar (r=right-vertical, l=left-vertical, b=bottom-horizontal,t=top-horizontal) can also be called by (-l,-r,-b,-t)'
-size/s - sets size of each diamond, defaults to "auto"
-marg - sets margin to axis
-fs/int - sets the interval for each number plotted along the colorbar
-font/fontsize - sets the font size of the numbers
-scol - sets the color of the numbers
-line - draws outline around each diamond if included
Anyway, I had some free time recently, and I got inspired to write a new script, so I quickly put together this script. I haven't used it too much, but I certainly see how and where it could be useful, perhaps to add a little flare to your figures. Enjoy! And as always, report any bugs!
Note: The example script will generate the plot above and requires the script color.gs
Download diamondbar.gs
Download Example Script
Your blog is an excellent resource for Grads. Thank you so much for putting this together.
ReplyDeleteI can't believe it took me so long to see this comment! Thank you for the kind words!
Delete