cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
%3CLINGO-SUB%20id%3D%22lingo-sub-417822%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3Erendere%20Smoother%20in%20Graph%20Builder%20un%20oggetto%20scriptabile%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-417822%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ESalvo%20spesso%20la%20formula%20pi%C3%B9%20uniforme%20della%20spline%20da%20Graph%20Builder%20con%20la%20sovrapposizione%20di%20una%20variabile%20categoriale%20e%20quindi%20salvo%20la%20formula%20nella%20tabella%20dei%20dati%20a%20causa%20del%20rumore%20nei%20miei%20dati.%20Lo%20uso%20cos%C3%AC%20spesso%20che%20vorrei%20essere%20in%20grado%20di%20scriverlo.Dopo%20aver%20controllato%20la%20sezione%20della%20Guida%20allo%20scripting%20relativa%20all'esecuzione%20delle%20opzioni%20del%20triangolo%20rosso%20incorporato%2C%20non%20riesco%20a%20vedere%20Smoother%20come%20un%20oggetto%20scriptabile.%20Si%20prega%20di%20fare%20in%20modo%20che%20il%20salvataggio%20della%20formula%20della%20spline%20sia%20pi%C3%B9%20fluido%20qualcosa%20che%20posso%20fare%20da%20JSL.%20Mi%20rendo%20conto%20che%20%C3%A8%20possibile%20utilizzare%20una%20funzione%20spline%20dalla%20piattaforma%20Bivariate%20con%20una%20variabile%20By.%20Mi%20piace%20che%20la%20spline%20predefinita%20si%20adatti%20meglio%20a%20Graph%20Builder.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-417822%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EGrafica%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EScripting%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-421143%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20rendere%20Smoother%20in%20Graph%20Builder%20un%20oggetto%20scriptabile%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-421143%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECome%20informazione%2C%20per%20ottenere%20la%20stessa%20linea%20dal%20generatore%20di%20grafici%20in%20Bivariato%2C%20scegli%20%22Altro...%22%20sotto%20il%20triangolo%20rosso%20%26gt%3B%20Flessibile%20%26gt%3B%20Adatta%20spline%2C%20usa%20un%20lamda%20di%200%2C05%20(predefinito%20nel%20generatore%20di%20grafici)%20e%20seleziona%20%22Standardizza%20X%22.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ih_0-1632684190309.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ih_0-1632684190309.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F36074iC8A507636510DC29%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ih_0-1632684190309.png%22%20alt%3D%22ih_0-1632684190309.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar

make Smoother in Graph Builder a scriptable object

I frequently save the spline smoother formula from Graph Builder with overlay of a categorical variable and then save the formula to the data table because of the noise in my data. I use it so often that I would like to be able to script it.  After having checked the section of the Scripting Guide about  Executing Embedded Red Triangle options, I cannot see the Smoother as a scriptable object. Please make saving the spline smoother formula something that I can do from JSL. I do realize that it is possible to use a spline function from the Bivariate platform with a By variable. I do like the default spline fit in Graph Builder better.

2 Comments
ih
Super User (Alumni)
Super User (Alumni)

As information, to get the same line from graph builder in Bivariate, choose 'Other...' under the Red Triangle > Flexible > Fit Spline, use a lamda of 0.05 (default in graph builder) and check 'Standardize X'.

 

ih_0-1632684190309.png

 

 

XanGregg
Staff

I think this question was superseded by your related question that I answered, so I'll post the same JSL for anyone coming across just this one. Though I hope this script does what you want, it's still true that there's no Smoother object per se.

gb = Graph Builder(
	Variables( X( :height ), Y( :weight ) ),
	Elements( Points( X, Y, Legend( 2 ) ), Smoother( X, Y, Legend( 3 )) )
);
gbb = Report( gb )[Graph Builder Box( 1 )];
gbb << Update Element( 1, 1, 2, {Save Formula} );