Robochameleon  v1.0
using_hg2.m
1 %USING_HG2 Determine if the HG2 graphics pipeline is used
2 %
3 % tf = using_hg2(fig)
4 %
5 %IN:
6 % fig - handle to the figure in question.
7 %
8 %OUT:
9 % tf - boolean indicating whether the HG2 graphics pipeline is being used
10 % (true) or not (false).
11 
12 function tf = using_hg2(fig)
13 try
14  tf = ~graphicsversion(fig, 'handlegraphics');
15 catch
16  tf = false;
17 end