There were no legends previously, and questions are often asked
about the interpretation of the data. This commit adds proper
s0 and s1 legends in XmGrace format.
Change-Id: I7bdcb57167eb3a0cef90a9b9dba9d04b86ba7cbd
matrix box;
char buf[256]; /* for xvgr title */
gmx_rmpbc_t gpbc = NULL;
matrix box;
char buf[256]; /* for xvgr title */
gmx_rmpbc_t gpbc = NULL;
+ const char* aleg[2] = { "cos(Angle)", "Angle (degrees)" }; /* legends for sg_angle output file */
if ((natoms = read_first_x(oenv, &status, fn, &t, &x0, box)) == 0)
{
if ((natoms = read_first_x(oenv, &status, fn, &t, &x0, box)) == 0)
{
sprintf(buf, "Angle between %s and %s", grpn1, grpn2);
sg_angle = xvgropen(afile, buf, "Time (ps)", "Angle (degrees)", oenv);
sprintf(buf, "Angle between %s and %s", grpn1, grpn2);
sg_angle = xvgropen(afile, buf, "Time (ps)", "Angle (degrees)", oenv);
+ xvgr_legend(sg_angle, 2, aleg, oenv);