cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-64734%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3Ehow%20to%20remove%20%22Where%22%20from%20graph%20builder%20report%20window%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-64734%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20have%20a%20script%2C%20that%20creates%20multiple%20graphs%20by%20parameter%20and%20put%20them%20in%20a%20report%20window.%3C%2FP%3E%3CP%3Ethe%20output%20creates%20a%20text%20above%20the%20outline%20box%20%22Where%20parameter%3Dparam%22%2C%20i%20would%20like%20to%20remove%20that.%20how%20can%20i%20do%20that%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Capture.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Capture.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Capture.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F11738iF47F1A6BFD50AF58%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Capture.PNG%22%20alt%3D%22Capture.PNG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethis%20is%20the%20snippet%20of%20relevant%20code%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Egraph%20%3D%20panel%20Box()%3B%0A%0ABuild_chart%20%3D%20Function(%20%7Bparam%7D%2C%0A%20gb%20%3D%20dt1%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%20%20Size(%201024%2C%20725%20)%2C%0A%20%20Show%20Control%20Panel(%200%20)%2C%0A%20%20Auto%20Stretching(%200%20)%2C%0A%20%20Automatic%20Recalc(%201%20)%2C%0A%20%20Variables(%20X(%20%3Apm_start_date%20)%2C%20Y(%20%3Atask_value%20)%2CGroup%20X(%20%3Aparameter%20)%2C%0A%20%20Elements(%20Points(%20X%2C%20Y%2C%20Legend(%201%20)%2C%20Jitter(%201%20)%20)%2C%20Smoother(%20X%2C%20Y%2C%20Legend(%202%20)%20)%20)%2C%0A%20%20Where(%20%3Aparameter%20%3D%3D%20param%20)%20%0A%0A%20)%0A%20%20%20%0A)%3B%0A%0AFor(%20j%20%3D%201%2C%20j%20%26lt%3B%3D%20N%20Items(%20param_list%20)%2C%20j%2B%2B%2C%0A%20graph%20%26lt%3B%26lt%3B%20append(%20Report(%20Build_chart(%20param_list%5Bj%5D%20)%20)%20)%0A)%3B%0A%0A%20%0Achartreport%20%3D%20New%20Window(%20%22test%20%22%2C%0A%20ob%20%3D%20H%20List%20Box(%20graph)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EThanks%20in%20advanced!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-64743%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20how%20to%20remove%20%22Where%22%20from%20graph%20builder%20report%20window%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-64743%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EThe%20definition%2C%20taken%20from%20the%20Scripting%20Index%2C%20for%20Top%20Parent%20is%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EReturns%20the%20root%20parent%20of%20the%20Display%20Box%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-64742%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20how%20to%20remove%20%22Where%22%20from%20graph%20builder%20report%20window%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-64742%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Eamazing!!%20it%20worked!!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethis%20is%20the%20part%20i%20was%20missing%3C%2FP%3E%3CPRE%20class%3D%22%20language-jsl%22%3E%3CCODE%20class%3D%22%20%20language-jsl%22%3E%3CSPAN%20class%3D%22token%20messages%22%3E%26lt%3B%3CTOPPARENT%3E%3C%2FTOPPARENT%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22token%20punctuation%22%3E%3B%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3Bwhat%20does%20it%20do%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethank%20you%20again!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-64736%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20how%20to%20remove%20%22Where%22%20from%20graph%20builder%20report%20window%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-64736%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EAll%20you%20need%20to%20do%2C%20is%20to%20find%20the%20top%20of%20the%20display%20tree%2C%20and%20then%20delete%20the%20first%20text%20box%2C%20which%20is%20the%20display%20of%20the%20Where%20clause.%26nbsp%3B%20See%20below%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Egraph%20%3D%20panel%20Box()%3B%0A%0ABuild_chart%20%3D%20Function(%20%7Bparam%7D%2C%0A%20gb%20%3D%20dt1%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%20%20Size(%201024%2C%20725%20)%2C%0A%20%20Show%20Control%20Panel(%200%20)%2C%0A%20%20Auto%20Stretching(%200%20)%2C%0A%20%20Automatic%20Recalc(%201%20)%2C%0A%20%20Variables(%0A%20%20%20X(%20%3Apm_start_date%20)%2C%0A%20%20%20Y(%20%3Atask_value%20)%2C%0A%20%20%20Group%20X(%20%3Aparameter%20)%2C%0A%20%20%20Elements(%20Points(%20X%2C%20Y%2C%20Legend(%201%20)%2C%20Jitter(%201%20)%20)%2C%20Smoother(%20X%2C%20Y%2C%20Legend(%202%20)%20)%20)%2C%0A%20%20%20Where(%20%3Aparameter%20%3D%3D%20param%20)%0A%20%20)%0A%20)%3B%0A%20tp%20%3D%20Report(%20gb%20)%20%26lt%3B%26lt%3B%20topparent%3B%0A%20tp%5BText%20Box(%201%20)%5D%20%26lt%3B%26lt%3B%20delete%3B%0A)%3B%0A%0AFor(%20j%20%3D%201%2C%20j%20%26lt%3B%3D%20N%20Items(%20param_list%20)%2C%20j%2B%2B%2C%0A%20graph%20%26lt%3B%26lt%3B%20append(%20Report(%20Build_chart(%20param_list%5Bj%5D%20)%20)%20)%0A)%3B%0A%0A%20%0Achartreport%20%3D%20New%20Window(%20%22test%20%22%2C%0A%20ob%20%3D%20H%20List%20Box(%20graph)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
samshaw
Level I

how to remove "Where" from graph builder report window

Hello,

I have a script, that creates multiple graphs by parameter and put them in a report window.

the output creates a text above the outline box "Where parameter=param", i would like to remove that. how can i do that?

Capture.PNG

 

this is the snippet of relevant code:

 

graph = panel Box();

Build_chart = Function( {param},
	gb = dt1 << Graph Builder(
		Size( 1024, 725 ),
		Show Control Panel( 0 ),
		Auto Stretching( 0 ),
		Automatic Recalc( 1 ),
		Variables( X( :pm_start_date ), Y( :task_value ),Group X( :parameter ),
		Elements( Points( X, Y, Legend( 1 ), Jitter( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
		Where( :parameter == param ) 

	)
			
);

For( j = 1, j <= N Items( param_list ), j++,
	graph << append( Report( Build_chart( param_list[j] ) ) )
);

 
chartreport = New Window( "test ",
	ob = H List Box( graph)
);

Thanks in advanced!

 

 

3 REPLIES 3
txnelson
Super User

Re: how to remove "Where" from graph builder report window

All you need to do, is to find the top of the display tree, and then delete the first text box, which is the display of the Where clause.  See below

graph = panel Box();

Build_chart = Function( {param},
	gb = dt1 << Graph Builder(
		Size( 1024, 725 ),
		Show Control Panel( 0 ),
		Auto Stretching( 0 ),
		Automatic Recalc( 1 ),
		Variables(
			X( :pm_start_date ),
			Y( :task_value ),
			Group X( :parameter ),
			Elements( Points( X, Y, Legend( 1 ), Jitter( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
			Where( :parameter == param )
		)
	);
	tp = Report( gb ) << topparent;
	tp[Text Box( 1 )] << delete;
);

For( j = 1, j <= N Items( param_list ), j++,
	graph << append( Report( Build_chart( param_list[j] ) ) )
);

 
chartreport = New Window( "test ",
	ob = H List Box( graph)
);
Jim
samshaw
Level I

Re: how to remove "Where" from graph builder report window

amazing!! it worked!!

 

this is the part i was missing

<<topparent;

 what does it do?

 

thank you again!

txnelson
Super User

Re: how to remove "Where" from graph builder report window

The definition, taken from the Scripting Index, for Top Parent is

 

Returns the root parent of the Display Box

Jim