cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
%3CLINGO-SUB%20id%3D%22lingo-sub-800152%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EScripters%20Club-Aufzeichnung%3A%20JSL%20im%20Graph%20Builder%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-800152%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EVideo%201%3C%2FP%3E%0A%3CP%3EModerator%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F18064%22%20target%3D%22_blank%22%3E%40Emmanuel_Romeu%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3C%2FP%3E%3CDIV%20class%3D%22lia-vid-container%20video-embed-center%20lia-video-unavailable%22%3E%3CDIV%20id%3D%22lia-vid-6362145953112w320h240r405%22%20class%3D%22lia-video-ooyala-player-container%22%3E%3CDIV%20class%3D%22lia-video-status-message%22%3EDieses%20Video%20wird%20gerade%20verarbeitet.%20Bitte%20versuchen%20Sie%20es%20in%20ein%20paar%20Minuten%20noch%20einmal.%3C%2FDIV%3E%3C%2FDIV%3E%3CA%20class%3D%22video-embed-link%22%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fvideo%2Fgallerypage%2Fvideo-id%2F6362145953112%22%20target%3D%22_blank%22%3E(in%20%E2%80%9EMeine%20Videos%E2%80%9C%20anzeigen)%3C%2FA%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EVideo%202%3C%2FP%3E%0A%3CP%3EModerator%3A%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F14366%22%20target%3D%22_blank%22%3E%40jthi%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%3C%2FP%3E%3CDIV%20class%3D%22lia-vid-container%20video-embed-center%20lia-video-unavailable%22%3E%3CDIV%20id%3D%22lia-vid-6362144301112w400h300r908%22%20class%3D%22lia-video-ooyala-player-container%22%3E%3CDIV%20class%3D%22lia-video-status-message%22%3EDieses%20Video%20wird%20gerade%20verarbeitet.%20Bitte%20versuchen%20Sie%20es%20in%20ein%20paar%20Minuten%20noch%20einmal.%3C%2FDIV%3E%3C%2FDIV%3E%3CA%20class%3D%22video-embed-link%22%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fvideo%2Fgallerypage%2Fvideo-id%2F6362144301112%22%20target%3D%22_blank%22%3E(in%20%E2%80%9EMeine%20Videos%E2%80%9C%20anzeigen)%3C%2FA%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-800162%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EBetreff%3A%20Scripters%20Club-Aufzeichnung%3A%20JSL%20im%20Graph%20Builder%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-800162%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EVon%20mir%20verwendetes%20Skript%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-800167%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EBetreff%3A%20Scripters%20Club-Aufzeichnung%3A%20JSL%20im%20Graph%20Builder%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-800167%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EEinige%20Fragen%20aus%20dem%20Teams-Chat%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EFrage%201%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%0A%3CP%3EGibt%20es%20einen%20XPath-Befehl%2C%20der%20entspricht%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EDispatch(%20%7B%7D%2C%20%22X%20title%22%2C%20TextEditBox%2C%3C%2FCODE%3E%3C%2FPRE%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%3CSTRONG%3EAntwort%201%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EAm%20einfachsten%20l%C3%A4sst%20sich%20das%20pr%C3%BCfen%2C%20indem%20Sie%20%26lt%3B%26lt%3B%20Get%20XML%20verwenden%20und%20pr%C3%BCfen%2C%20ob%20Sie%20dort%20%E2%80%9EX%20title%E2%80%9C%20finden%20k%C3%B6nnen.%20Das%20ist%20nicht%20m%C3%B6glich%20(diese%20%E2%80%9EAnzeigeelemente%E2%80%9C%20%3CSTRONG%3Ek%C3%B6nnten%3C%2FSTRONG%3E%20mit%20dem%20helpKey-Attribut%20identisch%20sein%2C%20wurden%20aber%20einfach%20nicht%20zu%20allem%20hinzugef%C3%BCgt).%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jthi_1-1726730746177.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1726730746177.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1726730746177.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1726730746177.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1726730746177.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1726730746177.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1726730746177.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1726730746177.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68446iB34427FDB0B771BD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jthi_1-1726730746177.png%22%20alt%3D%22jthi_1-1726730746177.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jthi_0-1726730734808.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1726730734808.png%22%20style%3D%22width%3A%20734px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1726730734808.png%22%20style%3D%22width%3A%20734px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1726730734808.png%22%20style%3D%22width%3A%20734px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1726730734808.png%22%20style%3D%22width%3A%20734px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1726730734808.png%22%20style%3D%22width%3A%20734px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1726730734808.png%22%20style%3D%22width%3A%20734px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1726730734808.png%22%20style%3D%22width%3A%20734px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68445iC88150C9BF2FC54D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22jthi_0-1726730734808.png%22%20alt%3D%22jthi_0-1726730734808.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ESie%20k%C3%B6nnen%20jedoch%20einen%20komplizierten%20XPath%20erstellen%2C%20um%20die%20Textbearbeitungsfelder%20an%20den%20Achsen%20zu%20erhalten%20(ich%20glaube%2C%20die%20X-Achse%20kommt%20immer%20zuerst).%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EGraphBuilderAxisBox%20%3CGRAPHBUILDERCOMPONENTBOX%20leftoffset%3D%2247%22%20topoffset%3D%22435%22%20width%3D%22478%22%20height%3D%2219%22%3E%0A%20%20%3CGRAPHBUILDERTITLEBOX%20width%3D%22478%22%20height%3D%2219%22%3E%0A%09%3CTEXTEDITBOX%20leftoffset%3D%22223%22%20topoffset%3D%220%22%20width%3D%2231%22%20height%3D%2219%22%3EMy%20X%3C%2FTEXTEDITBOX%3E%0A%20%20%3C%2FGRAPHBUILDERTITLEBOX%3E%0A%3C%2FGRAPHBUILDERCOMPONENTBOX%3E%0A%3CGRAPHBUILDERCOMPONENTBOX%20leftoffset%3D%2247%22%20topoffset%3D%22408%22%20width%3D%22478%22%20height%3D%2227%22%3E%0A%20%20%3CGRAPHBUILDERAXISBOX%20width%3D%22478%22%20height%3D%2227%22%3E%0A%09%3CAXISBOX%20width%3D%22478%22%20height%3D%2227%22%20charid%3D%221000%22%3E%3C%2FAXISBOX%3E%0A%20%20%3C%2FGRAPHBUILDERAXISBOX%3E%0A%3C%2FGRAPHBUILDERCOMPONENTBOX%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3ESie%20k%C3%B6nnen%20Ihren%20XPath%20auf%20der%20Suche%20nach%20GraphBuilderComponentBox%20%2B%20GraphBuilderAxisBox%20und%20davor%20GraphBuilderComponentBox%20%2B%20GraphBuilderTitleBox%20basieren.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%2F%2FGraphBuilderComponentBox%5BGraphBuilderAxisBox%5D%2Fpreceding-sibling%3A%3AGraphBuilderComponentBox%5B1%5D%2FGraphBuilderTitleBox%2FTextEditBox%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(1)%3B%20%0A%0Adt%20%3D%20open(%22%24SAMPLE_DATA%2FBig%20Class.jmp%22)%3B%0A%0Agb%20%3D%20dt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%09Size(525%2C%20454)%2C%0A%09Show%20Control%20Panel(0)%2C%0A%09Variables(X(%3Aweight)%2C%20Y(%3Aheight))%2C%0A%09Elements(Points(X%2C%20Y%2C%20Legend(3)))%2C%0A%09SendToReport(%0A%09%09Dispatch(%7B%7D%2C%20%22X%20title%22%2C%20TextEditBox%2C%20%7BSet%20Text(%22My%20X%22)%7D)%2C%0A%09%09Dispatch(%7B%7D%2C%20%22Y%20title%22%2C%20TextEditBox%2C%20%7BSet%20Text(%22My%20Y%22)%7D)%0A%09)%0A)%3B%0A%0Anw%20%3D%20New%20Window(%22gbscript%22%2C%20%26lt%3B%26lt%3B%20type(%22Script%22)%2C%20%26lt%3B%26lt%3B%20Language(%22XML%22)%2C%20%0A%09Report(gb)%20%26lt%3B%26lt%3B%20Get%20XML%3B%0A)%3B%0A%0Aaxis_title_tebs%20%3D%20Report(gb)%20%26lt%3B%26lt%3B%20XPath(%22%2F%2FGraphBuilderComponentBox%5BGraphBuilderAxisBox%5D%2Fpreceding-sibling%3A%3AGraphBuilderComponentBox%5B1%5D%2FGraphBuilderTitleBox%2FTextEditBox%22)%3B%0A%0Aaxis_title_tebs%5B1%5D%20%26lt%3B%26lt%3B%20Set%20Text(%22XXXXX%22)%3B%0Aaxis_title_tebs%5B2%5D%20%26lt%3B%26lt%3B%20Set%20Text(%22YYYYY%22)%3B%0A%0AWrite()%3B%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EFrage%202%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%0A%3CP%20style%3D%22margin-bottom%3A%200px%3B%20margin-top%3A%200px%3B%22%3EDiese%20Frage%20bezieht%20sich%20jedoch%20eher%20auf%20Graph%20Builder%20und%20nicht%20direkt%20auf%20Skripte.%20K%C3%B6nnten%20Sie%20bitte%20zeigen%2C%20wie%20man%20eine%20Probe%20im%20Diagramm%20hervorhebt%20oder%20identifiziert%3F%20Und%20wie%20man%20nur%20einer%20der%20Proben%20und%20zus%C3%A4tzlich%20einigen%20bestimmten%20Proben%20eine%20Beschriftung%20hinzuf%C3%BCgt.%3C%2FP%3E%0A%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%3CSTRONG%3EAntwort%202%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EVerschiedene%20Datentypen%20(und%20JMP-Versionen)%20k%C3%B6nnen%20unterschiedliche%20Beschriftungstechniken%20erfordern.%20Im%20schlimmsten%20Fall%20m%C3%BCssen%20Sie%20dies%20per%20Skript%20tun%2C%20aber%20normalerweise%20ist%20dies%20nicht%20erforderlich.%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EIch%20gehe%20von%20JMP18%20und%20einfachen%20Daten%20aus.%20Ich%20habe%20ein%20Diagramm%20wie%20dieses%20und%20m%C3%B6chte%20den%20hervorgehobenen%20Punkt%20beschriften%20und%20einf%C3%A4rben%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jthi_2-1726731329895.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_2-1726731329895.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_2-1726731329895.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_2-1726731329895.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_2-1726731329895.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_2-1726731329895.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_2-1726731329895.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_2-1726731329895.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68447i3B7E8CFF7AB26610%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jthi_2-1726731329895.png%22%20alt%3D%22jthi_2-1726731329895.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EDurch%20einfaches%20Beschriften%20der%20Zeile%20und%20Hinzuf%C3%BCgen%20der%20Farbe%20des%20Zeilenstatus%20wird%20sie%20wie%20folgt%20hervorgehoben%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jthi_3-1726731367719.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_3-1726731367719.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_3-1726731367719.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_3-1726731367719.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_3-1726731367719.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_3-1726731367719.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_3-1726731367719.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_3-1726731367719.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68448i0444DF59C6CB9747%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jthi_3-1726731367719.png%22%20alt%3D%22jthi_3-1726731367719.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EDieses%20Add-In%20wurde%20auch%20erw%C3%A4hnt%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMP-Add-Ins%2FColumn-Quick-Swapper-easily-change-multiple-Y-and-X-axis-columns%2Fm-p%2F724616%23U724616%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-tkb-thread%20lia-fa-icon%20lia-fa-tkb%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3EColumn%20Quick%20Swapper%20-%20einfaches%20%C3%84ndern%20mehrerer%20Y-%20und%20X-Achsenspalten%20im%20Graph%20Builder%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-800173%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3EBetreff%3A%20Scripters%20Club-Aufzeichnung%3A%20JSL%20im%20Graph%20Builder%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-800173%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3EDanke%20f%C3%BCr%20die%20Antworten.%3CBR%20%2F%3E%3CBR%20%2F%3E%20Ich%20frage%20mich%2C%20warum%20es%20nichts%20gibt%20wie%3A%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Ecurrent%20report()%20%26lt%3B%26lt%3B%20XPath(%22%2F%2FTextEditBox%5B%40type%3D'X%20%20title'%5D%22)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3Erealer%20Anwendungsfall%3A%3CBR%20%2F%3E%20Holen%20Sie%20sich%20den%20%3CU%3ETitel%20der%20unteren%20Y-Achse%3C%2FU%3E%20in%20einem%20Diagramm%20mit%202%20Beschriftungen%20f%C3%BCr%20die%20X-Achse%20und%202%20Beschriftungen%20f%C3%BCr%20die%20Y-Achse%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EDispatch(%20%7B%7D%2C%20%22Y%201%20title%22%2C%20TextEditBox%2C%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3Eist%20wunderbar%20im%20Vergleich%20zum%20Erraten%20des%20richtigen%20Eintrags%20in%20dieser%20Liste%3A%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Eaxis_title_tebs%20%3D%20Report(gb)%20%26lt%3B%26lt%3B%20XPath(%22%2F%2FGraphBuilderComponentBox%5BGraphBuilderAxisBox%5D%2Fpreceding-sibling%3A%3AGraphBuilderComponentBox%5B1%5D%2FGraphBuilderTitleBox%2FTextEditBox%22)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-800184%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EBetreff%3A%20Scripters%20Club-Aufzeichnung%3A%20JSL%20im%20Graph%20Builder%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-800184%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EMan%20kann%20es%20immer%20noch%20ziemlich%20robust%20machen%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(1)%3B%20%0A%0Adt%20%3D%20open(%22%24SAMPLE_DATA%2FBig%20Class.jmp%22)%3B%0A%0Agb%20%3D%20dt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%09Size(528%2C%20448)%2C%0A%09Show%20Control%20Panel(0)%2C%0A%09Variables(X(%3Asex)%2C%20X(%3Aage)%2C%20Y(%3Aweight)%2C%20Y(%3Aheight)%2C%20Overlay(%3Asex))%2C%0A%09Elements(Position(1%2C%201)%2C%20Points(X%2C%20Y%2C%20Legend(24)))%2C%0A%09Elements(Position(1%2C%202)%2C%20Points(X%2C%20Y%2C%20Legend(25)))%2C%0A%09Elements(Position(2%2C%201)%2C%20Points(X%2C%20Y%2C%20Legend(9))%2C%20Line%20Of%20Fit(X%2C%20Y%2C%20Legend(11)))%2C%0A%09Elements(%0A%09%09Position(2%2C%202)%2C%0A%09%09Points(X%2C%20Y%2C%20Legend(16))%2C%0A%09%09Line%20Of%20Fit(X%2C%20Y%2C%20Legend(17))%0A%09)%0A)%3B%0A%0Aaxis_title_tebs%20%3D%20Report(gb)%20%26lt%3B%26lt%3B%20XPath(%22%2F%2FGraphBuilderComponentBox%5BGraphBuilderAxisBox%5D%2Fpreceding-sibling%3A%3AGraphBuilderComponentBox%5B1%5D%2FGraphBuilderTitleBox%2FTextEditBox%22)%3B%0Axcount%20%3D%20gb%20%26lt%3B%26lt%3B%20Get%20N%20Positions(%22X%22)%3B%0A%0Afirstyaxis%20%3D%20axis_title_tebs%5Bxcount%20%2B%201%5D%3B%0A%0AShow(firstyaxis%20%26lt%3B%26lt%3B%20get%20text)%3B%0A%0AWrite()%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3ESchade%2C%20dass%20es%20%E2%80%9EY%201-Titel%E2%80%9C%20und%20nicht%20%E2%80%9EY-Titel%E2%80%9C%20hei%C3%9Ft%20(oder%20vielleicht%20sollte%20es%20immer%20%E2%80%9EY%201-Titel%E2%80%9C%20hei%C3%9Fen%20und%20wir%20sollten%20nicht%20einmal%20nur%20%E2%80%9EY-Titel%E2%80%9C%20haben)%2C%20also%20wird%20es%20anders%20sein%2C%20wenn%20Sie%20eine%20oder%20mehrere%20Y-Achsen%20haben.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-800185%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EBetreff%3A%20Scripters%20Club-Aufzeichnung%3A%20JSL%20im%20Graph%20Builder%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-800185%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHm%20...%3CBR%20%2F%3E%20es%20macht%20immer%20Spa%C3%9F%2C%20diese%20Bonus-Analyse-Herausforderung%20%E2%80%9Ekostenlos%E2%80%9C%20zu%20bekommen%3C%2FP%3E%3CP%3E-%20neben%20der%20Analyse%20werden%20Sie%20%22bezahlt%22%3CLI-EMOJI%20id%3D%22lia_winking-face%22%20title%3D%22%3Acara_gui%C3%B1ando_un_ojo%3A%22%3E%3C%2FLI-EMOJI%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-800729%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EBetreff%3A%20Scripters%20Club-Aufzeichnung%3A%20JSL%20im%20Graph%20Builder%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-800729%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EEinige%20Links%20aus%20dem%20Scripting%20Guide%20(nicht%20unbedingt%20direkt%20mit%20JSL%20f%C3%BCr%20Graph%20Builder%20verbunden)%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F18.0%2F%23page%2Fjmp%2Fgraph-builder-scripts.shtml%23%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%C3%9Cberlegungen%20zum%20Skripting%20nach%20Plattform%20%26gt%3B%20Graph%20Builder-Skripte%3C%2FA%3E%20%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F18.0%2F%23page%2Fjmp%2Fget-references-to-display-box-objects.shtml%23%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EReferenzen%20zu%20Anzeigebox-Objekten%20abrufen%3C%2FA%3E%20%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F18.0%2F%23page%2Fjmp%2Fsend-messages-to-display-boxes.shtml%3Fos%3Dwin%26amp%3Bsource%3Dapplication%23ww547854%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAnpassen%20von%20Berichten%20mit%20den%20Funktionen%20%E2%80%9EAn%20Bericht%20senden%E2%80%9C%20und%20%E2%80%9EVersand%E2%80%9C%3C%2FA%3E%20%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F18.0%2F%23page%2Fjmp%2Fscripting-graphs.shtml%23%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ESkripterstellung%20f%C3%BCr%20Diagramme%3C%2FA%3E%20%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-805009%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EBetreff%3A%20Scripters%20Club-Aufzeichnung%3A%20JSL%20im%20Graph%20Builder%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-805009%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ESeit%20JMP18%20funktionieren%20die%20By-Variablen%20etwas%20anders%20und%20es%20gibt%20neue%20Optionen.%20Wenn%20Sie%20das%20Gef%C3%BChl%20haben%2C%20dass%20Sie%20By-Variablen%20h%C3%A4ufig%20verwenden%2C%20empfehle%20ich%20Ihnen%2C%20Group%20Platform%20aus%20dem%20Scripting-Index%20zu%20%C3%BCberpr%C3%BCfen.%20Es%20enth%C3%A4lt%20beispielsweise%20%E2%80%9EGroup%20Platform%E2%80%9C%2C%20was%20von%20Zeit%20zu%20Zeit%20hilfreich%20sein%20kann%2C%20da%20Sie%20steuern%20k%C3%B6nnen%2C%20welche%20Referenz%20Sie%20erhalten%20(h%C3%B6chste%20Ebene%20oder%20alle%20Plattformen%20in%20einer%20Liste).%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jthi_0-1728628952981.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1728628952981.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F69027i710B720848AA4064%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jthi_0-1728628952981.png%22%20alt%3D%22jthi_0-1728628952981.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EEs%20gibt%20%C3%A4hnliche%20%C3%9Cberlegungen%20zu%20Where%20%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F18.0%2F%23page%2Fjmp%2Ffilter-by-value-using-a-where-statement.shtml%23%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EFilter%20by%20Value%20Using%20a%20Where%20Statement%20(jmp.com)%3C%2FA%3E%20.%20Eine%20solche%20%C3%9Cberlegung%20k%C3%B6nnte%20sein%2C%20welche%20Datentabelle%20verwendet%20wird%20oder%20welcher%20Where-Ausdruck%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(1)%3B%20%0A%0Adt%20%3D%20open(%22%24SAMPLE_DATA%2FBig%20Class.jmp%22)%3B%0A%0Agbs%20%3D%20dt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%09Variables(X(%3Aweight)%2C%20Y(%3Aheight))%2C%0A%09Elements(Points(X%2C%20Y%2C%20Legend(9))%2C%20Line%20Of%20Fit(X%2C%20Y%2C%20Legend(11)))%2C%0A%09By(%3Asex)%0A)%3B%0A%0Agb%20%3D%20dt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%09Variables(X(%3Aweight)%2C%20Y(%3Aheight))%2C%0A%09Elements(Points(X%2C%20Y%2C%20Legend(9))%2C%20Line%20Of%20Fit(X%2C%20Y%2C%20Legend(11)))%2C%0A%09Where(%3Asex%20%3D%3D%20%22F%22)%3B%0A)%3B%0A%0Ashow(gbs%20%26lt%3B%26lt%3B%20Get%20Data%20Table)%3B%0Ashow(gb%20%26lt%3B%26lt%3B%20Get%20Data%20Table)%3B%0A%0Ashow(gbs%20%26lt%3B%26lt%3B%20Get%20Where%20Expr)%3B%0Ashow(gb%20%26lt%3B%26lt%3B%20Get%20Where%20Expr)%3B%0A%0A%0Aprivate_tables%20%3D%20Find%20All(Data%20Tables%2C%20Private)%3B%0AShow(private_tables%20%26lt%3B%26lt%3B%20get%20name)%3B%0AShow(private_tables%20%26lt%3B%26lt%3B%20Is%20Linked%20Subset)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Egbs%20%26lt%3B%26lt%3B%20Get%20Data%20Table%20%3D%20%7BDataTable(%22sex%3DF%22)%2C%20DataTable(%22sex%3DM%22)%7D%3B%0Agb%20%26lt%3B%26lt%3B%20Get%20Data%20Table%20%3D%20DataTable(%22Big%20Class%2C%20where%20-sex%20%3D%3D%20-F-%203%22)%3B%0Agbs%20%26lt%3B%26lt%3B%20Get%20Where%20Expr%20%3D%20%7B%3Asex%20%3D%3D%20%22F%22%2C%20%3Asex%20%3D%3D%20%22M%22%7D%3B%0Agb%20%26lt%3B%26lt%3B%20Get%20Where%20Expr%20%3D%20%3Asex%20%3D%3D%20%22F%22%3B%0Aprivate_tables%20%26lt%3B%26lt%3B%20get%20name%20%3D%20%7B%22sex%3DF%22%2C%20%22sex%3DM%22%2C%20%22Big%20Class%2C%20where%20-sex%20%3D%3D%20-F-%22%2C%20%22Big%20Class%2C%20where%20-sex%20%3D%3D%20-F-%202%22%2C%20%22Big%20Class%2C%20where%20-sex%20%3D%3D%20-F-%203%22%7D%3B%0Aprivate_tables%20%26lt%3B%26lt%3B%20Is%20Linked%20Subset%20%3D%20%7B1%2C%201%2C%201%2C%201%2C%201%7D%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar

Scripters Club Recording: JSL in Graph Builder

Video 1

Presenter @Emmanuel_Romeu 

 

Video 2

Presenter: @jthi 

 

7 REPLIES 7
jthi
Super User

Re: Scripters Club Recording: JSL in Graph Builder

Script I used

-Jarmo
jthi
Super User

Re: Scripters Club Recording: JSL in Graph Builder

Few questions from Teams chat

 

Question1:

is there an Xpath command which corresponds to 

 

Dispatch( {}, "X title", TextEditBox,

Answer1:

Easiest way to check is to use << Get XML and check if you can find "X title" from there. You can't (those "display elements" could be same as helpKey attribute but they just haven't been added to everything).

jthi_1-1726730746177.png

jthi_0-1726730734808.png

But you can build complicated XPath to get the axis text edit boxes (I think first is always X-axis).

 

GraphBuilderAxisBox <GraphBuilderComponentBox leftOffset="47" topOffset="435" width="478" height="19">
  <GraphBuilderTitleBox width="478" height="19">
	<TextEditBox leftOffset="223" topOffset="0" width="31" height="19">My X</TextEditBox>
  </GraphBuilderTitleBox>
</GraphBuilderComponentBox>
<GraphBuilderComponentBox leftOffset="47" topOffset="408" width="478" height="27">
  <GraphBuilderAxisBox width="478" height="27">
	<AxisBox width="478" height="27" charID="1000"/>
  </GraphBuilderAxisBox>
</GraphBuilderComponentBox>

 

You can base your XPath on finding GraphBuilderComponentBox + GraphBuilderAxisBox and preceding GraphBuilderComponentBox + GraphBuilderTitleBox

//GraphBuilderComponentBox[GraphBuilderAxisBox]/preceding-sibling::GraphBuilderComponentBox[1]/GraphBuilderTitleBox/TextEditBox
Names Default To Here(1); 

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

gb = dt << Graph Builder(
	Size(525, 454),
	Show Control Panel(0),
	Variables(X(:weight), Y(:height)),
	Elements(Points(X, Y, Legend(3))),
	SendToReport(
		Dispatch({}, "X title", TextEditBox, {Set Text("My X")}),
		Dispatch({}, "Y title", TextEditBox, {Set Text("My Y")})
	)
);

nw = New Window("gbscript", << type("Script"), << Language("XML"), 
	Report(gb) << Get XML;
);

axis_title_tebs = Report(gb) << XPath("//GraphBuilderComponentBox[GraphBuilderAxisBox]/preceding-sibling::GraphBuilderComponentBox[1]/GraphBuilderTitleBox/TextEditBox");

axis_title_tebs[1] << Set Text("XXXXX");
axis_title_tebs[2] << Set Text("YYYYY");

Write();

 

Question 2:


This question is more related to Graph Builder though, not directly related to Scripts. Could you please show how to highlight or identify a sample in the Graph? And how to add a label to only one of the samples, and additionally to some specific samples.


Answer 2:

Different types of data (and JMP versions) can require different types of labeling techniques. In worst case you might have to script it but usually this isn't necessary.

 

I will go with the assumption of JMP18 and simple data. I have graph like this and I wish to label and color the highlighted point

jthi_2-1726731329895.png

Just by labeling that row and adding color row state it will get highlighted like this

jthi_3-1726731367719.png

 

 

 

 

This add-in was also mentioned Column Quick Swapper - easily change multiple Y and X-axis columns in Graph Builder 

-Jarmo
hogi
Level XII

Re: Scripters Club Recording: JSL in Graph Builder

Thanks for the answers.

I wonder why there is nothing like:

current report() << XPath("//TextEditBox[@type='X  title']")


real application case:
get the bottom Y axis title in a graph with 2 x axis labels  and 2 y axis labels

Dispatch( {}, "Y 1 title", TextEditBox,

is wonderful compared to guessing the right entry in this list:

axis_title_tebs = Report(gb) << XPath("//GraphBuilderComponentBox[GraphBuilderAxisBox]/preceding-sibling::GraphBuilderComponentBox[1]/GraphBuilderTitleBox/TextEditBox");

 

jthi
Super User

Re: Scripters Club Recording: JSL in Graph Builder

You can still make it fairly robust

Names Default To Here(1); 

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

gb = dt << Graph Builder(
	Size(528, 448),
	Show Control Panel(0),
	Variables(X(:sex), X(:age), Y(:weight), Y(:height), Overlay(:sex)),
	Elements(Position(1, 1), Points(X, Y, Legend(24))),
	Elements(Position(1, 2), Points(X, Y, Legend(25))),
	Elements(Position(2, 1), Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11))),
	Elements(
		Position(2, 2),
		Points(X, Y, Legend(16)),
		Line Of Fit(X, Y, Legend(17))
	)
);

axis_title_tebs = Report(gb) << XPath("//GraphBuilderComponentBox[GraphBuilderAxisBox]/preceding-sibling::GraphBuilderComponentBox[1]/GraphBuilderTitleBox/TextEditBox");
xcount = gb << Get N Positions("X");

firstyaxis = axis_title_tebs[xcount + 1];

Show(firstyaxis << get text);

Write();

Too bad that is "Y 1 title" and not "Y title" (or maybe it should always be "Y 1 title" and we shouldn't even have just "Y title") so it will be different if you have one or multiple y-axis.

-Jarmo
hogi
Level XII

Re: Scripters Club Recording: JSL in Graph Builder

Hm ...
it's always fun to get this bonus analysis challenge "for free"

- besides the analysis you are "paid for"

 

jthi
Super User

Re: Scripters Club Recording: JSL in Graph Builder

jthi
Super User

Re: Scripters Club Recording: JSL in Graph Builder

Since JMP18 the By variables do work a bit differently and there are new options. If you feel like you are using By variables a lot, I suggest you check out Group Platform from scripting index. It for example contains "Group Platform" which might be helpful from time to time as you can control which reference you get (highest level or all platforms in a list)

jthi_0-1728628952981.png

 

There are somewhat similar considerations with Where Filter by Value Using a Where Statement (jmp.com). One such consideration might be which data table they are utilizing or which where expression

Names Default To Here(1); 

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

gbs = dt << Graph Builder(
	Variables(X(:weight), Y(:height)),
	Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11))),
	By(:sex)
);

gb = dt << Graph Builder(
	Variables(X(:weight), Y(:height)),
	Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11))),
	Where(:sex == "F");
);

show(gbs << Get Data Table);
show(gb << Get Data Table);

show(gbs << Get Where Expr);
show(gb << Get Where Expr);


private_tables = Find All(Data Tables, Private);
Show(private_tables << get name);
Show(private_tables << Is Linked Subset);
gbs << Get Data Table = {DataTable("sex=F"), DataTable("sex=M")};
gb << Get Data Table = DataTable("Big Class, where -sex == -F- 3");
gbs << Get Where Expr = {:sex == "F", :sex == "M"};
gb << Get Where Expr = :sex == "F";
private_tables << get name = {"sex=F", "sex=M", "Big Class, where -sex == -F-", "Big Class, where -sex == -F- 2", "Big Class, where -sex == -F- 3"};
private_tables << Is Linked Subset = {1, 1, 1, 1, 1};

 

 

-Jarmo