cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use JMP Live to centralize and share reports within groups. Webinar with Q&A April 4, 2pm ET.
Choose Language Hide Translation Bar
View Original Published Thread

Label Offset for MarkerSeg

miguello
Level VI

I need to have a label offset for all my labels (if I choose to label a row) on my plots.

So, I have 8 plots through "Group X". In each plot I have exactly 30 points.

I'm trying to do the following:

rgb = Report (gb);
For( i = 1, i <= 8, i++,
frame = (gb << report)[FrameBox(i)];
seg = frame << Find Seg( Marker Seg( 1 ) );
for(j = 0, j < 30, j++, 
seg << label offset({j, 10, -60} )
);
);

 

 

But it doesn't work. If I spell out numbers 0 through 29 in label offset it works perfectly.

Like this:

seg << label offset(
{0, 10, -60} ,
{1, 10, -60} ,
{2, 10, -60} ,
{3, 10, -60} ,
{4, 10, -60} ,
{5, 10, -60} ,
{6, 10, -60} ,
{7, 10, -60} ,
{8, 10, -60} ,
{9, 10, -60} ,
{10, 10, -60} ,
{11, 10, -60} ,
{12, 10, -60} ,
{13, 10, -60} ,
{14, 10, -60} ,
{15, 10, -60} ,
{16, 10, -60} ,
{17, 10, -60} ,
{18, 10, -60} ,
{19, 10, -60} ,
{20, 10, -60} ,
{21, 10, -60} ,
{22, 10, -60}, 
{23, 10, -60}, 
{24, 10, -60}, 
{25, 10, -60}, 
{26, 10, -60}, 
{27, 10, -60}, 
{28, 10, -60}, 
{29, 10, -60} 
);

What am I doing wrong? How do I script setting offsets for all 30 points?

I tried to play with Substitute(), Expr() and Evl() - but no luck.

 

 

1 REPLY 1
XanGregg
Staff


Re: Label Offset for MarkerSeg

This one has two evaluation hurdles:

  1. Lists don't normally eval their items
  2. the label offset message doesn't eval its argument

I think this takes care of both.

Eval(Eval Expr(seg << label offset(Expr(EvalList({j, 10, -60})) )))