Login  Register

Re: Data-dependent Reference line in GPL

Posted by jkpeck on Oct 18, 2021; 5:22pm
URL: http://spssx-discussion.165.s1.nabble.com/Data-dependent-Reference-line-in-GPL-tp5740795p5740805.html

I have posted a small Python function with a usage example for a chart with a Vertical or Horizontal Reference Line at the mean on my Onedrive site here
https://1drv.ms/u/s!AoWcE61g_FAdisVPvH2Kdqmm77vNEg?e=8npaBg

Usage is explained in the comments.  You run the first block of code once in a session.  Then the usage is via a small BEGIN PROGRAM python3 blockthat provides the specific GGRAPH/GPL code and the name of the variable whose mean is needed.  You include a GUIDE form.line statementlike this in the GPLGUIDE: form.line(position({mean}, *))
and call the function like thisggraph("V1", cmd)
specifying the reference variable name in quotes and the GPL command.
Let me know of any issues.