cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • DownloadSemiconductor Toolkit: Tools to create wafer maps, add wafer geometry to graphics, explore die defects & compare wafers.
  • Discovery Summit 2026: Early User Edition - September 23-24.Register. It's free.
  • See how to access JMP Marketplace - and - find, create & share add-ins to extend your JMP. Watch video.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
rugolf
Level II

Droite de référence particulière sur un histogramme

Bonjour,

Comment ajouter une ligne de référence (celle de la moyenne) sur l'histogramme de la plateforme distribution lorsque l'on a un sélecteur de colonnes, je souhaite avoir cette ligne pour chacune des  10  variables, évidemment sans avoir à la rajouter à la main ?

Par avance merci.

Jean-Luc

2 REPLIES 2
jthi
Super User

Re: Droite de référence particulière sur un histogramme

You have few options:

  • Set Target of specification limit column property as the mean and enable those in plots. You will need to calculate these beforehand and set them to column properties but summary + manage spec limits should be able to do this
  • JSL: use Column Switch Handler which updates the reference lines as column changes
  • JSL: Create graphic script which is able to update the reference line 
  • Use different platform such as Graph Builder in which you can easily add the line as separate element
-Jarmo
jthi
Super User

Re: Droite de référence particulière sur un histogramme

Below are some examples for the JSL options (there are plenty of different ways of doing these):

Example for the graphic script option:

Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

dist = dt << Distribution(
	Continuous Distribution(
		Column(:height),
		Always use column properties(1),
		Process Capability(0)
	),
	Column Switcher(:height, {:height, :weight})
);


Report(dist)[FrameBox(1)] << Add Graphics Script(Function({this},
	m = ((this << Top Parent)[OutlineBox("Summary Statistics"), Number Col Box(1)] << get)[1];
	Pen Color("Purple");
	Pen Size(5);
	H Line(m);
));

 

Example for the column switch handler:

Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

dist = dt << Distribution(
	Continuous Distribution(
		Column(:height),
		Always use column properties(1),
		Process Capability(0)
	)
);

cw = dist << Column Switcher(:height, {:height, :weight});
post = Function({previousColumn, currentColumn, switcher},
	prevm = Col Mean(previousColumn);
	m = Col Mean(currentColumn);
	axisbox = Report(dist)[axis box(1)];
	Try(axisbox << Remove Ref Line(prevm));
	axisbox << Add Ref Line(m, "Dashed", blue, "Mean", 2);
	wait(0);
);
handler = cw << Make Column Switch Handler(Empty(), post);
-Jarmo

Recommended Articles