cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.
%3CLINGO-SUB%20id%3D%22lingo-sub-769254%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E6%9F%90%E4%BA%9B%E6%95%B0%E6%8D%AE%E5%88%97%E4%B8%8D%E4%BC%9A%E5%9C%A8%E5%9B%BE%E8%A1%A8%E4%B8%AD%E6%98%BE%E7%A4%BA%E4%B8%BA%E7%AE%B1%E7%BA%BF%E5%9B%BE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-769254%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Enames%20Default%20To%20Here(1)%3B%0A%0AMyGraph%20%3D%20Function(%7ByCol%2C%20xCol%2C%20gpx%7D%2C%20%7Bdefault%20local%7D%2C%0A%20%20%20%20vars%20%3D%20Eval%20Expr(Variables(%0A%20%20%20%20%20%20%20%20X(Expr(xCol))%2C%0A%20%20%20%20%20%20%20%20Group%20X(Expr(gpx))%0A%20%20%20%20))%3B%0A%20%20%20%20%0A%20%20%20%20pts%20%3D%20Expr(Box%20Plot(X))%3B%0A%20%20%20%20%0A%20%20%20%20For(j%20%3D%201%2C%20j%20%26lt%3B%3D%20Min(8%2C%20N%20Items(yCol))%2C%20j%2B%2B%2C%0A%20%20%20%20%20%20%20%20Insert%20Into(vars%2C%20Eval%20Expr(Y(Expr(yCol%5Bj%5D))))%3B%0A%20%20%20%20)%3B%0A%20%20%20%20%0A%20%20%20%20gb%20%3D%20Expr(%0A%20%20%20%20%20%20%20%20Graph%20Builder(%0A%20%20%20%20%20%20%20%20%20%20%20%20Size(1255%2C%20981)%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20Show%20Control%20Panel(0)%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20Variables%20section%20will%20be%20inserted%20here%0A%20%20%20%20%20%20%20%20%20%20%20%20Elements(Box%20Plot(X%2C%20Y(1)%2C%20Y(2)%2C%20Y(3)%2C%20Y(4)%2C%20Y(5)%2C%20Y(6)%2C%20Y(7)%2C%20Y(8)%2C%20Legend(11)))%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20Local%20Data%20Filter(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Add%20Filter(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20columns(%3ATest%20Stage%2C%20%3ASublot%2C%20%3ATemperature%2C%20%3ASoft%20Bin)%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Display(%3ATest%20Stage%2C%20N%20Items(4))%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Display(%3ASoft%20Bin%2C%20N%20Items(15))%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20)%0A%20%20%20%20%20%20%20%20%20%20%20%20)%0A%20%20%20%20%20%20%20%20)%0A%20%20%20%20)%3B%0A%20%20%20%20Insert%20Into(gb%2C%20Name%20Expr(vars))%3B%0A%20%20%20%20%0A%20%20%20%20VListBox(gb)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E6%89%80%E9%99%84%E4%BB%A3%E7%A0%81%E4%B8%8D%E4%BC%9A%E5%9C%A8%E7%AC%AC%E4%BA%8C%E4%B8%AA%E4%B9%8B%E5%90%8E%E5%B0%86%20Y%20%E6%95%B0%E6%8D%AE%E5%88%97%E7%BB%98%E5%88%B6%E4%B8%BA%E7%AE%B1%E7%BA%BF%E5%9B%BE%EF%BC%8C%E5%B9%B6%E4%B8%94%E6%89%80%E6%9C%89%E7%AE%B1%E7%BA%BF%E5%9B%BE%E4%B8%8D%E4%BC%9A%E5%85%B1%E4%BA%AB%E7%9B%B8%E5%90%8C%E7%9A%84%20Y%20%E8%BD%B4%E3%80%82%E6%88%91%E6%83%B3%E7%A1%AE%E4%BF%9D%E6%89%80%E6%9C%89%E5%88%97%E9%83%BD%E7%BB%98%E5%88%B6%E4%B8%BA%E7%AE%B1%E7%BA%BF%E5%9B%BE%E5%B9%B6%E5%85%B1%E4%BA%AB%E7%9B%B8%E5%90%8C%E7%9A%84%20Y%20%E8%BD%B4%E3%80%82%E8%AF%A5%E4%BB%A3%E7%A0%81%E5%9C%A8%E7%BB%98%E5%88%B6%E7%82%B9%E6%97%B6%E8%BF%90%E8%A1%8C%E8%89%AF%E5%A5%BD%EF%BC%8C%E7%BB%98%E5%88%B6%E7%AE%B1%E7%BA%BF%E5%9B%BE%E4%B8%8E%E7%BB%98%E5%88%B6%E7%82%B9%E6%9C%89%E4%BB%80%E4%B9%88%E4%B8%8D%E5%90%8C%E5%90%97%EF%BC%9F%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E8%B0%A2%E8%B0%A2%E3%80%82%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ARETI052_0-1719597808493.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ARETI052_0-1719597808493.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ARETI052_0-1719597808493.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ARETI052_0-1719597808493.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ARETI052_0-1719597808493.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ARETI052_0-1719597808493.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F65702i98C68854FC2A2DF4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ARETI052_0-1719597808493.png%22%20alt%3D%22ARETI052_0-1719597808493.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-769254%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E%E8%87%AA%E5%8A%A8%E5%8C%96%E5%92%8C%E8%84%9A%E6%9C%AC%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E6%95%B0%E6%8D%AE%E8%AE%BF%E9%97%AE%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E8%A7%86%E7%AA%97%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-769265%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E9%83%A8%E5%88%86%E6%95%B0%E6%8D%AE%E5%88%97%E4%B8%8D%E4%BC%9A%E4%BB%A5%E7%AE%B1%E7%BA%BF%E5%9B%BE%E5%BD%A2%E5%BC%8F%E6%98%BE%E7%A4%BA%E5%9C%A8%E5%9B%BE%E8%A1%A8%E4%B8%AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-769265%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3E%3CSTRONG%3E%E5%8D%95%E4%B8%AA%E5%AD%90%E5%9B%BE%3C%2FSTRONG%3E%E5%92%8C%3CSTRONG%3E%E7%9B%B8%E5%90%8C%E5%AD%90%E5%9B%BE%3C%2FSTRONG%3E%E4%B9%8B%E9%97%B4%E7%9A%84%E5%8C%BA%E5%88%AB%E8%A7%A3%E9%87%8A%E5%A6%82%E4%B8%8B%EF%BC%9A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FHow-to-let-user-choose-multiple-columns-for-graph-builder%2Fm-p%2F768754%23U768754%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-forum-thread%20lia-fa-icon%20lia-fa-forum%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3E%E5%A6%82%E4%BD%95%E8%AE%A9%E7%94%A8%E6%88%B7%E4%B8%BA%E5%9B%BE%E5%BD%A2%E7%94%9F%E6%88%90%E5%99%A8%E9%80%89%E6%8B%A9%E5%A4%9A%E5%88%97%3C%2FA%3E%20%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E7%AA%8D%E9%97%A8%EF%BC%9A%3CBR%20%2F%3E%20%E2%80%9C%20%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3Eposition(1)%3C%2FFONT%3E%20%E2%80%9D%20-%20%E5%A6%82%E6%9E%9C%E6%82%A8%E4%B8%8D%E5%B0%86%E5%85%B6%E6%8C%87%E5%AE%9A%E4%B8%BA%201%EF%BC%8C%E5%88%99%E6%AF%8F%E4%B8%AA%E6%96%B0%E7%9A%84%20Y%20%E5%8F%98%E9%87%8F%E4%BD%8D%E7%BD%AE%E9%83%BD%E4%BC%9A%E8%87%AA%E5%8A%A8%E5%A2%9E%E5%8A%A0%EF%BC%8C%E5%B9%B6%E4%B8%94%E8%AF%A5%E5%88%97%E5%B0%86%E6%B7%BB%E5%8A%A0%E4%B8%80%E4%B8%AA%E6%96%B0%E7%9A%84%E5%AD%90%E5%9B%BE%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%20%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hogi_0-1719598647243.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_0-1719598647243.png%22%20style%3D%22width%3A%20241px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F65703i38E73F89CF1212AC%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hogi_0-1719598647243.png%22%20alt%3D%22hogi_0-1719598647243.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-769266%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E9%83%A8%E5%88%86%E6%95%B0%E6%8D%AE%E5%88%97%E4%B8%8D%E4%BC%9A%E4%BB%A5%E7%AE%B1%E7%BA%BF%E5%9B%BE%E5%BD%A2%E5%BC%8F%E6%98%BE%E7%A4%BA%E5%9C%A8%E5%9B%BE%E8%A1%A8%E4%B8%AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-769266%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E6%98%8E%E7%99%BD%E4%BA%86%EF%BC%8C%E8%B0%A2%E8%B0%A2%EF%BC%81%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
ARETI052
Level III

Some of the data columns won't appear as box plots in the graph

names Default To Here(1);

MyGraph = Function({yCol, xCol, gpx}, {default local},
    vars = Eval Expr(Variables(
        X(Expr(xCol)),
        Group X(Expr(gpx))
    ));
    
    pts = Expr(Box Plot(X));
    
    For(j = 1, j <= Min(8, N Items(yCol)), j++,
        Insert Into(vars, Eval Expr(Y(Expr(yCol[j]))));
    );
    
    gb = Expr(
        Graph Builder(
            Size(1255, 981),
            Show Control Panel(0),
            // Variables section will be inserted here
            Elements(Box Plot(X, Y(1), Y(2), Y(3), Y(4), Y(5), Y(6), Y(7), Y(8), Legend(11))),
            Local Data Filter(
                Add Filter(
                    columns(:Test Stage, :Sublot, :Temperature, :Soft Bin),
                    Display(:Test Stage, N Items(4)),
                    Display(:Soft Bin, N Items(15))
                )
            )
        )
    );
    Insert Into(gb, Name Expr(vars));
    
    VListBox(gb)
);

Hi, 

 

The code attached is not won't plot the Y - data columns as box plots after the 2nd one, and all the box plots wont share the same Y-axis. I want to make sure that the all the columns are plotted as box plots and share the same Y-axis. The code was working fine for plotting points, is plotting box plots different from plotting the points?

 

Thanks.

ARETI052_0-1719597808493.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
hogi
Level XII

Re: Some of the data columns won't appear as box plots in the graph

the difference between individual subplots and same subplot is explained here:

How to let user choose multiple columns for graph builder 

 

The Trick:
"position(1)" - if you don't specify it to be 1, with every new Y variable position is incremented automatically and the column will be added with a new subplot.

hogi_0-1719598647243.png

 

View solution in original post

2 REPLIES 2
hogi
Level XII

Re: Some of the data columns won't appear as box plots in the graph

the difference between individual subplots and same subplot is explained here:

How to let user choose multiple columns for graph builder 

 

The Trick:
"position(1)" - if you don't specify it to be 1, with every new Y variable position is incremented automatically and the column will be added with a new subplot.

hogi_0-1719598647243.png

 

ARETI052
Level III

Re: Some of the data columns won't appear as box plots in the graph

I see, thanks!

Recommended Articles