cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-672589%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EComment%20enregistrer%20une%20carte%20de%20contr%C3%B4le%20au%20format%20PNG%2C%20etc.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-672589%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJ'ai%20le%20script%20suivant%20qui%20produit%20une%20belle%20carte%20de%20contr%C3%B4le%2C%20j'aimerais%20ajouter%20une%20fonction%20pour%20l'enregistrer%20(ou%20la%20fen%C3%AAtre)%20au%20format%20png%20dans%20un%20dossier%20que%20je%20peux%20partager%20avec%20d'autres%20%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%20Table%20de%20donn%C3%A9es%20(%22%C3%A9chantillon%20de%20donn%C3%A9es%22)%3CBR%20%2F%3E%20%26lt%3B%26lt%3B%20Nouveau%20script(%3CBR%20%2F%3E%20%22Carte%20de%20contr%C3%B4le%20-%201%22%2C%3CBR%20%2F%3E%20G%C3%A9n%C3%A9rateur%20de%20cartes%20de%20contr%C3%B4le%20(%3CBR%20%2F%3E%20Taille%20(960%2C%20767)%2C%3CBR%20%2F%3E%20Afficher%20le%20rapport%20d'alarme%20(1)%2C%3CBR%20%2F%3E%20Afficher%20les%20%C3%A9tiquettes%20de%20limite(%201%20)%2C%3CBR%20%2F%3E%20Afficher%20le%20rapport%20Sigma%20(%201%20)%2C%3CBR%20%2F%3E%20Inclure%20les%20cat%C3%A9gories%20manquantes%20(%200%20)%2C%3CBR%20%2F%3E%20Variables(%3CBR%20%2F%3E%20Sous-groupe(%20%3Atime%20)%2C%3CBR%20%2F%3E%20Sous-groupe(%20%3Aunit%C3%A9%2C%20Position(%201%20)%20)%2C%3CBR%20%2F%3E%20Y(%20%3Aparam%C3%A8tre%201%20)%3CBR%20%2F%3E%20)%2C%3CBR%20%2F%3E%20Graphique(%3CBR%20%2F%3E%20Poste(%201%20)%2C%3CBR%20%2F%3E%20Points(%20Statistique(%20%22Individu%22%20)%20)%2C%3CBR%20%2F%3E%20Limites(%20Sigma(%20%22Moving%20Range%22%20)%20)%2C%3CBR%20%2F%3E%20Avertissements(%3CBR%20%2F%3E%20Essai%201(%201%20)%2C%3CBR%20%2F%3E%20Essai%202(%201%20)%2C%3CBR%20%2F%3E%20Essai%203(%201%20)%2C%3CBR%20%2F%3E%20Essai%204(1)%2C%3CBR%20%2F%3E%20Essai%205(1)%2C%3CBR%20%2F%3E%20Essai%206(1)%2C%3CBR%20%2F%3E%20Essai%207(1)%2C%3CBR%20%2F%3E%20Essai%208(1)%2C%3CBR%20%2F%3E%20R%C3%A8gle%201%202S(%201%20)%2C%3CBR%20%2F%3E%20R%C3%A8gle%201%203S(%201%20)%2C%3CBR%20%2F%3E%20R%C3%A8gle%202%202S(%201%20)%2C%3CBR%20%2F%3E%20R%C3%A8gle%20R%204S(%201%20)%2C%3CBR%20%2F%3E%20R%C3%A8gle%204%201S(%201%20)%2C%3CBR%20%2F%3E%20R%C3%A8gle%2010%20X(%201%20)%2C%3CBR%20%2F%3E%20Test%20au-del%C3%A0%20des%20limites(%201%20)%3CBR%20%2F%3E%20)%2C%3CBR%20%2F%3E%20Analyse%20de%20la%20capacit%C3%A9%20du%20processus%20(histogramme%20(1%2C%20afficher%20dans%20la%20densit%C3%A9%20Sigma%20(0)))%3CBR%20%2F%3E%20)%2C%3CBR%20%2F%3E%20Graphique(%3CBR%20%2F%3E%20Poste(%202%20)%2C%3CBR%20%2F%3E%20Points(%20Statistique(%20%22Moving%20Range%22%20)%20)%2C%3CBR%20%2F%3E%20Limites(%20Sigma(%20%22Moving%20Range%22%20)%20)%2C%3CBR%20%2F%3E%20Avertissements%20(Test%20au-del%C3%A0%20des%20limites%20(1))%3CBR%20%2F%3E%20)%2C%3CBR%20%2F%3E%20Graphique(%3CBR%20%2F%3E%20Poste(%203%20)%2C%3CBR%20%2F%3E%20Points(%20Statistique(%20%22Moving%20Range%22%20)%20)%2C%3CBR%20%2F%3E%20Limites(%20Sigma(%20%22Moving%20Range%22%20)%20)%2C%3CBR%20%2F%3E%20Avertissements%20(Test%20au-del%C3%A0%20des%20limites%20(1))%3CBR%20%2F%3E%20)%2C%3CBR%20%2F%3E%20Filtre%20de%20donn%C3%A9es%20local%20(Ajouter%20un%20filtre%20(colonnes%20(%20%3Afilter%201%20)%20)%20)%2C%3CBR%20%2F%3E%20Afficher%20le%20panneau%20de%20configuration%20(0)%2C%3CBR%20%2F%3E%20EnvoyerToReport(%3CBR%20%2F%3E%20Exp%C3%A9dition(%3CBR%20%2F%3E%20%7B%7D%2C%3CBR%20%2F%3E%20%22param%C3%A8tre%202%22%2C%3CBR%20%2F%3E%20ScaleBox%2C%3CBR%20%2F%3E%20%7BFormat(%20%22D%C3%A9c.%20fixe%22%2C%2012%2C%202%20)%2C%20Min(%200%20)%2C%20Max(%201)%2C%20Inc(%200.1%20)%2C%3CBR%20%2F%3E%20Tiques%20mineures(%200%20)%7D))))%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-672589%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EAutomatisation%20et%20scripts%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIng%C3%A9nierie%20Qualit%C3%A9%20et%20Proc%C3%A9d%C3%A9s%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eles%20fen%C3%AAtres%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-672605%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%20%3A%20Comment%20enregistrer%20une%20carte%20de%20contr%C3%B4le%20au%20format%20PNG%2C%20etc.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-672605%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECet%20exemple%20pour%20l'index%20de%20script%20devrait%20illustrer%20comment%20proc%C3%A9der%26nbsp%3B%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0A%2F%2FThis%20message%20applies%20to%20all%20display%20box%20objects%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0Abiv%20%3D%20dt%20%26lt%3B%26lt%3B%20Bivariate(%20y(%20%3Aweight%20)%2C%20x(%20%3Aheight%20)%20)%3B%0Arbiv%20%3D%20biv%20%26lt%3B%26lt%3B%20report%3B%0Arbiv%20%26lt%3B%26lt%3B%20Save%20Picture(%20%22%24TEMP%2Fjmp_example.png%22%2C%20%22png%22%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
CuriousRobin
Level I

How to Save a Control Chart as a PNG etc

I have the following script that produces a nice control chart, I'd like to add on a function to save it(or the window) as a png to a folder I can share with others?

Data Table("sampledata")
<< New Script(
"Control Chart - 1",
Control Chart Builder(
Size( 960, 767 ),
Show Alarm Report( 1 ),
Show Limit Labels( 1 ),
Show Sigma Report( 1 ),
Include Missing Categories( 0 ),
Variables(
Subgroup( :time ),
Subgroup( :unit, Position( 1 ) ),
Y( :parameter 1 )
),
Chart(
Position( 1 ),
Points( Statistic( "Individual" ) ),
Limits( Sigma( "Moving Range" ) ),
Warnings(
Test 1( 1 ),
Test 2( 1 ),
Test 3( 1 ),
Test 4( 1 ),
Test 5( 1 ),
Test 6( 1 ),
Test 7( 1 ),
Test 8( 1 ),
Rule 1 2S( 1 ),
Rule 1 3S( 1 ),
Rule 2 2S( 1 ),
Rule R 4S( 1 ),
Rule 4 1S( 1 ),
Rule 10 X( 1 ),
Test Beyond Limits( 1 )
),
Process Capability Analysis( Histogram( 1, Show Within Sigma Density( 0 ) ) )
),
Chart(
Position( 2 ),
Points( Statistic( "Moving Range" ) ),
Limits( Sigma( "Moving Range" ) ),
Warnings( Test Beyond Limits( 1 ) )
),
Chart(
Position( 3 ),
Points( Statistic( "Moving Range" ) ),
Limits( Sigma( "Moving Range" ) ),
Warnings( Test Beyond Limits( 1 ) )
),
Local Data Filter( Add Filter( columns( :filter 1 ) ) ),
Show Control Panel( 0 ),
SendToReport(
Dispatch(
{},
"parameter 2",
ScaleBox,
{Format( "Fixed Dec", 12, 2 ), Min( 0 ), Max( 1), Inc( 0.1 ),
Minor Ticks( 0 )}))));

1 REPLY 1

Re: How to Save a Control Chart as a PNG etc

This example for the Scripting Index should illustrate how to do it:

 

Names Default To Here( 1 );
//This message applies to all display box objects
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = dt << Bivariate( y( :weight ), x( :height ) );
rbiv = biv << report;
rbiv << Save Picture( "$TEMP/jmp_example.png", "png" );

Recommended Articles