%3CLINGO-SUB%20id%3D%22lingo-sub-29709%22%20slang%3D%22en-US%22%3ECr%C3%A9ation%20de%20graphiques%20anonymes%20dans%20JMP%208%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-29709%22%20slang%3D%22en-US%22%3E%3CP%3EComment%20utiliser%20JSL%20pour%20cr%C3%A9er%20un%20graphique%20sans%20%C3%A9tiquettes%20sur%20les%20axes%3F%20Il%20y%20a%20beaucoup%20de%20raisons%20pour%20lesquelles%20vous%20pourriez%20vouloir%20faire%20cela%3B%20vous%20cr%C3%A9ez%20peut-%C3%AAtre%20un%20contr%C3%B4le%20de%20tableau%20de%20bord%20qui%20affiche%20une%20image%20personnalis%C3%A9e%20ou%20des%20donn%C3%A9es%20ne%20n%C3%A9cessitant%20pas%20d'%C3%A9tiquettes.%20%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EQuoi%20qu%E2%80%99il%20en%20soit%2C%20il%20ya%20deux%20endroits%20o%C3%B9%20chercher%20les%20%C3%A9tiquettes%3A%20les%20%C3%A9tiquettes%20de%20graduation%20(0%2C%2010%2C%2020%2C%E2%80%A6%20100)%20et%20l%E2%80%99%C3%A9tiquette%20d%E2%80%99axe%20(un%20nom%20de%20variable%20comme%20Hauteur).%20%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EUtilisons%20la%20commande%20JSL%20Graph%20Box%20pour%20cr%C3%A9er%20le%20graphique%20comme%20ceci%20(directement%20%C3%A0%20partir%20de%20la%20description%20de%20Aide-%26gt%3B%20Indexes-%26gt%3B%20Fonctions%20JSL-%26gt%3B%20Graph%20Box)%3A%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CPRE%3E%3CBR%20%2F%3E%3C%2FPRE%3E%3C%2FP%3E%3CP%3ENouvelle%20fen%C3%AAtre%20(%22Exemple%22%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20Bo%C3%AEte%20graphique%20(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Taille%20de%20cadre%20(300%2C%20300)%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20xaxis%20(affiche%20les%20ticks%20principaux%20(false)%2C%20affiche%20les%20ticks%20mineurs%20(false)%2C%20affiche%20les%20%C3%A9tiquettes%20(false))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20yaxis%20(affiche%20les%20ticks%20principaux%20(false)%2C%20affiche%20les%20ticks%20mineurs%20(false)%2C%20affiche%20les%20%C3%A9tiquettes%20(false))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Marqueur(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Etat%20du%20marqueur%20(3)%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5B11%2044%2077%5D%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5B75%2025%2050%5D%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20)%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Couleur%20du%20stylo%20(%22bleu%22)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Ligne%20(%5B10%2030%2070%5D%2C%20%5B88%2022%2044%5D)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20)%3C%2FP%3E%3CP%3E)%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CIMG%20width%3D%22364%22%20height%3D%22355%22%20style%3D%22border%3A%200px%3Bpadding-left%3A%205px%3Bpadding-right%3A%205px%22%20src%3D%22http%3A%2F%2Fblogs.sas.com%2Fjmp%2Fuploads%2Fimage001.gif%22%20alt%3D%22%22%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EPour%20%C3%A9liminer%20les%20%C3%A9tiquettes%20de%20graduation%2C%20ajoutez%20deux%20commandes%20envoy%C3%A9es%20aux%20axes%20x%20et%20y%3A%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%20%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CPRE%3ENew%20Window(%20%22Example%22%2C%3C%2FPRE%3E%3C%2FP%3E%3CP%3E%20%20%20%20%20%20Bo%C3%AEte%20graphique%20(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Taille%20de%20cadre%20(300%2C%20300)%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20xaxis%20(affiche%20les%20ticks%20principaux%20(false)%2C%20affiche%20les%20ticks%20mineurs%20(false)%2C%20affiche%20les%20%C3%A9tiquettes%20(false))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20yaxis%20(affiche%20les%20ticks%20principaux%20(false)%2C%20affiche%20les%20ticks%20mineurs%20(false)%2C%20affiche%20les%20%C3%A9tiquettes%20(false))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Marqueur(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Etat%20du%20marqueur%20(3)%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5B11%2044%2077%5D%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5B75%2025%2050%5D%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20)%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Couleur%20du%20stylo%20(%22bleu%22)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Ligne%20(%5B10%2030%2070%5D%2C%20%5B88%2022%2044%5D)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20)%3C%2FP%3E%3CP%3E)%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CIMG%20width%3D%22346%22%20height%3D%22335%22%20style%3D%22border%3A%200px%3Bpadding-left%3A%205px%3Bpadding-right%3A%205px%22%20src%3D%22http%3A%2F%2Fblogs.sas.com%2Fjmp%2Fuploads%2Fimage002.gif%22%20alt%3D%22%22%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EEt%20pour%20%C3%A9liminer%20les%20%C3%A9tiquettes%20d'axe%2C%20ajoutez%20deux%20autres%20commandes%20envoy%C3%A9es%20aux%20axes%3A%20%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%20%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CPRE%3E%3C%2FPRE%3E%3C%2FP%3E%3CP%3ENouvelle%20fen%C3%AAtre%20(%22Exemple%22%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20g%20%3D%20zone%20graphique%20(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Taille%20de%20cadre%20(300%2C%20300)%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20xaxis%20(affiche%20les%20ticks%20principaux%20(false)%2C%20affiche%20les%20ticks%20mineurs%20(false)%2C%20affiche%20les%20%C3%A9tiquettes%20(false))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20yaxis%20(affiche%20les%20ticks%20principaux%20(false)%2C%20affiche%20les%20ticks%20mineurs%20(false)%2C%20affiche%20les%20%C3%A9tiquettes%20(false))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Marqueur(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Etat%20du%20marqueur%20(3)%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5B11%2044%2077%5D%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5B75%2025%2050%5D%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20)%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Couleur%20du%20stylo%20(%22bleu%22)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Ligne%20(%5B10%2030%2070%5D%2C%20%5B88%2022%2044%5D)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20)%3C%2FP%3E%3CP%3E)%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Eg%20%5Bbo%C3%AEte%20d'axes%20(1)%5D%20%26lt%3B%3CREMOVE%20axis%3D%22%22%20label%3D%22%22%3E%3C%2FREMOVE%3E%3C%2FP%3E%3CP%3Eg%20%5Bbo%C3%AEte%20d'axes%20(2)%5D%20%26lt%3B%26lt%3B%20enl%C3%A8ve%20le%20libell%C3%A9%20d'axe%3B%3C%2FP%3E%3CP%3E%2F%2F%20vous%20pouvez%20supprimer%20les%20%C3%A9tiquettes%20de%20coche%20de%20cette%20fa%C3%A7on%2C%20surtout%20si%20vous%20n'utilisez%20pas%20la%20commande%20Graph%20Box%3C%2FP%3E%3CP%3E%2F%2F%20g%20%5Bframebox%20(1)%5D%20%26lt%3B%26lt%3B%20xaxis%20(affiche%20les%20ticks%20principaux%20(false)%2C%20affiche%20les%20ticks%20mineurs%20(false)%2C%20affiche%20les%20libell%C3%A9s%20(false))%3B%3C%2FP%3E%3CP%3E%2F%2F%20g%20%5Bframebox%20(1)%5D%20%26lt%3B%26lt%3B%20yaxis%20(affiche%20les%20ticks%20principaux%20(false)%2C%20affiche%20les%20ticks%20mineurs%20(false)%2C%20affiche%20les%20libell%C3%A9s%20(false))%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CIMG%20width%3D%22331%22%20height%3D%22331%22%20style%3D%22border%3A%200px%3Bpadding-left%3A%205px%3Bpadding-right%3A%205px%22%20src%3D%22http%3A%2F%2Fblogs.sas.com%2Fjmp%2Fuploads%2Fimage006.gif%22%20alt%3D%22%22%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%20(Prime)%20%3C%2FSTRONG%3E%20Pour%20supprimer%20%C3%A9galement%20le%20cadre%2C%20envoyez%20quatre%20commandes%20au%20cadre%3A%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%20%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CPRE%3E%3C%2FPRE%3E%3C%2FP%3E%3CP%3ENouvelle%20fen%C3%AAtre%20(%22Exemple%22%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20g%20%3D%20zone%20graphique%20(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Taille%20de%20cadre%20(300%2C%20300)%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20xaxis%20(affiche%20les%20ticks%20principaux%20(false)%2C%20affiche%20les%20ticks%20mineurs%20(false)%2C%20affiche%20les%20%C3%A9tiquettes%20(false))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20yaxis%20(affiche%20les%20ticks%20principaux%20(false)%2C%20affiche%20les%20ticks%20mineurs%20(false)%2C%20affiche%20les%20%C3%A9tiquettes%20(false))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Marqueur(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Etat%20du%20marqueur%20(3)%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5B11%2044%2077%5D%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5B75%2025%2050%5D%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20)%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Couleur%20du%20stylo%20(%22bleu%22)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Ligne%20(%5B10%2030%2070%5D%2C%20%5B88%2022%2044%5D)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20)%3C%2FP%3E%3CP%3E)%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Eg%20%5Bbo%C3%AEte%20d'axes%20(1)%5D%20%26lt%3B%26lt%3B%20enl%C3%A8ve%20le%20libell%C3%A9%20d'axe%3B%3C%2FP%3E%3CP%3Eg%20%5Bbo%C3%AEte%20d'axes%20(2)%5D%20%26lt%3B%26lt%3B%20enl%C3%A8ve%20le%20libell%C3%A9%20d'axe%3B%3C%2FP%3E%3CP%3Eg%20%5Bcadre%20(1)%5D%20%26lt%3B%26lt%3B%20gauche%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5Bcadre%20(1)%5D%20%26lt%3B%26lt%3B%20droite%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5Bcadre%20(1)%5D%20%26lt%3B%26lt%3B%20haut%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5Bcadre%20(1)%5D%20%26lt%3B%26lt%3B%20bas%20(0)%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CIMG%20width%3D%22301%22%20height%3D%22301%22%20style%3D%22border%3A%200px%3Bpadding-left%3A%205px%3Bpadding-right%3A%205px%22%20src%3D%22http%3A%2F%2Fblogs.sas.com%2Fjmp%2Fuploads%2Fimage008.gif%22%20alt%3D%22%22%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EVoici%20un%20exemple%20complet%20avec%20un%20curseur%20pour%20lui%20faire%20faire%20quelque%20chose%3A%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%20%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CPRE%3E%3C%2FPRE%3E%3C%2FP%3E%3CP%3Eg%20%3D%20zone%20graphique%20(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20Taille%20de%20cadre%20(100%2C%2020)%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20Couleur%20du%20stylo%20(%22bleu%22)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20Fonction%20Y%20(50%20%2B%2050%20*%20Sin%20(x%20*%20SliderValue)%2C%20x)%3B%20%2F%2F%20graph%20est%20une%20onde%20de%20p%C3%A9ch%C3%A9%2C%20la%20p%C3%A9riode%20d%C3%A9pend%20de%20SliderValue%3C%2FP%3E%3CP%3E)%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%2F%2F%20enl%C3%A8ve%20les%20ornements%20du%20graphique%3C%2FP%3E%3CP%3Eg%20%5Bframebox%20(1)%5D%20%26lt%3B%26lt%3B%20xaxis%20(affiche%20les%20ticks%20principaux%20(false)%2C%20affiche%20les%20ticks%20mineurs%20(false)%2C%20affiche%20les%20%C3%A9tiquettes%20(false))%3B%3C%2FP%3E%3CP%3Eg%20%5Bframebox%20(1)%5D%20%26lt%3B%26lt%3B%20yaxis%20(affiche%20les%20ticks%20principaux%20(false)%2C%20affiche%20les%20ticks%20mineurs%20(false)%2C%20affiche%20les%20%C3%A9tiquettes%20(false))%3B%3C%2FP%3E%3CP%3Eg%20%5Bbo%C3%AEte%20d'axes%20(1)%5D%20%26lt%3B%26lt%3B%20enl%C3%A8ve%20le%20libell%C3%A9%20d'axe%3B%3C%2FP%3E%3CP%3Eg%20%5Bbo%C3%AEte%20d'axes%20(2)%5D%20%26lt%3B%26lt%3B%20enl%C3%A8ve%20le%20libell%C3%A9%20d'axe%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%2F%2F%20cache%20la%20bordure%20int%C3%A9rieure%3C%2FP%3E%3CP%3Eg%20%5Bcadre%20(1)%5D%20%26lt%3B%26lt%3B%20Gauche%20(0)%3B%20%2F%2F%20pas%20de%20ligne%20%C3%A0%20gauche%2C%20etc.%3C%2FP%3E%3CP%3Eg%20%5Bcadre%20(1)%5D%20%26lt%3B%26lt%3B%20Droite%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5Bcadre%20(1)%5D%20%26lt%3B%26lt%3B%20haut%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5Bcadre%20(1)%5D%20%26lt%3B%26lt%3B%20bas%20(0)%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%2F%2F%20r%C3%A9duit%20et%20cache%20aussi%20la%20bordure%20ext%C3%A9rieure%3C%2FP%3E%3CP%3Eg%20%5BBo%C3%AEte%20%C3%A0%20fronti%C3%A8re%20(1)%5D%20%26lt%3B%26lt%3B%20Gauche%20(0)%3B%20%2F%2F%20pas%20d'espace%20%C3%A0%20gauche%2C%20etc.%3C%2FP%3E%3CP%3Eg%20%5BZone%20de%20bordure%20(1)%5D%20%26lt%3B%26lt%3B%20Droite%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5BBo%C3%AEte%20%C3%A0%20fronti%C3%A8re%20(1)%5D%20%26lt%3B%26lt%3B%20Haut%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5BBo%C3%AEte%20%C3%A0%20fronti%C3%A8re%20(1)%5D%20%26lt%3B%26lt%3B%20en%20bas%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5BZone%20de%20bordure%20(1)%5D%20%26lt%3B%26lt%3B%20c%C3%B4t%C3%A9s%20(0)%3B%20%2F%2F%20ne%20dessine%20aucun%20c%C3%B4t%C3%A9%20(1%20%2B%202%20%2B%204%20%2B%208%20seraient%20les%20quatre%20c%C3%B4t%C3%A9s)%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Es%20%3D%20Slider%20Box%20(0%2C%20.5%2C%20SliderValue%2C%20SliderFunction)%3B%20%2F%2F%20curseur%20de%200%20%C3%A0%20.5%3C%2FP%3E%3CP%3ESliderValue%20%3D%200%2C25%3B%20%2F%2F%20valeur%20initiale%2C%20devient%20la%20valeur%20actuelle%20lorsque%20le%20curseur%20est%20d%C3%A9plac%C3%A9%3C%2FP%3E%3CP%3ESliderFunction%20%3D%20Fonction%20(%7B%7D%2C%20g%20%5Bzone%20de%20cadre%20(1)%5D%20%26lt%3B%26lt%3B%20afficher)%3B%20%2F%2F%20r%C3%A9affiche%20le%20graphique%20lorsque%20le%20curseur%20se%20d%C3%A9place%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%2F%2F%20tout%20mettre%20ensemble%20dans%20une%20fen%C3%AAtre%3C%2FP%3E%3CP%3ENouvelle%20fen%C3%AAtre%20(%22Exemple%22%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20Bo%C3%AEte%20fronti%C3%A8re%20(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Gauche%20(10)%2C%20droite%20(10)%2C%20haut%20(10)%2C%20bas%20(10)%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Coffret%20Ligne%20(N%20Col%20(1)%2C%20g%2C%20s)%3C%2FP%3E%3CP%3E%20%20%20%20%20%20)%3C%2FP%3E%3CP%3E)%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CIMG%20width%3D%22146%22%20height%3D%22107%22%20style%3D%22border%3A%200px%3Bpadding-left%3A%205px%3Bpadding-right%3A%205px%22%20src%3D%22http%3A%2F%2Fblogs.sas.com%2Fjmp%2Fuploads%2Fimage015.gif%22%20alt%3D%22%22%20%2F%3E%3CIMG%20width%3D%22148%22%20height%3D%22106%22%20style%3D%22border%3A%200px%3Bpadding-left%3A%205px%3Bpadding-right%3A%205px%22%20src%3D%22http%3A%2F%2Fblogs.sas.com%2Fjmp%2Fuploads%2Fimage016.gif%22%20alt%3D%22%22%20%2F%3E%20%20%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2FP%3E%3CP%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
Jeff_Perkinson
Community Manager Community Manager
Making Anonymous Graphs in JMP 8

How can I use JSL to make a graph with no labels on the axes? There are a lot of reasons you might want to do this; maybe you are building a dashboard control that shows a custom picture, or maybe you have data that needs no labels.


Anyway, there are two places to look to make the labels go away – the tick mark labels (0, 10, 20, … 100) and the axis label (a variable name like Height).


Let’s use the JSL Graph Box command to create the graph like this (taken directly from the Help->Indexes->JSL Functions->Graph Box description):



New Window( "Example",

Graph Box(

Frame Size( 300, 300 ),

xaxis(show major ticks(false),show minor ticks(false),show labels(false)),

yaxis(show major ticks(false),show minor ticks(false),show labels(false)),

Marker(

Marker State( 3 ),

[11 44 77],

[75 25 50]

);

Pen Color( "Blue" );

Line( [10 30 70], [88 22 44] );

)

);





To eliminate the tick mark labels, add two commands sent to the x and y axes:


New Window( "Example",

Graph Box(

Frame Size( 300, 300 ),

xaxis(show major ticks(false),show minor ticks(false),show labels(false)),

yaxis(show major ticks(false),show minor ticks(false),show labels(false)),

Marker(

Marker State( 3 ),

[11 44 77],

[75 25 50]

);

Pen Color( "Blue" );

Line( [10 30 70], [88 22 44] );

)

);





And to eliminate the axis labels, add two more commands sent to the axes:


New Window( "Example",

g = Graph Box(

Frame Size( 300, 300 ),

xaxis(show major ticks(false),show minor ticks(false),show labels(false)),

yaxis(show major ticks(false),show minor ticks(false),show labels(false)),

Marker(

Marker State( 3 ),

[11 44 77],

[75 25 50]

);

Pen Color( "Blue" );

Line( [10 30 70], [88 22 44] );

)

);

g[axis box(1)]<

g[axis box(2)] << remove axis label;

// you could remove the tick mark labels this way, especially if you are not using the Graph Box command

// g[framebox(1)] << xaxis(show major ticks(false),show minor ticks(false),show labels(false));

// g[framebox(1)] << yaxis(show major ticks(false),show minor ticks(false),show labels(false));





(Bonus) To remove the frame as well, send four commands to the frame:


New Window( "Example",

g = Graph Box(

Frame Size( 300, 300 ),

xaxis(show major ticks(false),show minor ticks(false),show labels(false)),

yaxis(show major ticks(false),show minor ticks(false),show labels(false)),

Marker(

Marker State( 3 ),

[11 44 77],

[75 25 50]

);

Pen Color( "Blue" );

Line( [10 30 70], [88 22 44] );

)

);

g[axis box(1)] << remove axis label;

g[axis box(2)] << remove axis label;

g[frame box(1)] << left(0);

g[frame box(1)] << right(0);

g[frame box(1)] << top(0);

g[frame box(1)] << bottom(0);





Here is a complete example with a slider to make it do something:


g = Graph Box(

Frame Size( 100, 20 ),

Pen Color( "Blue" );

Y Function( 50 + 50*Sin( x*SliderValue ), x ); // graph is a sin wave, period depends on SliderValue

);

// remove adornments from graph

g[framebox( 1 )] << xaxis( show major ticks( false ), show minor ticks( false ), show labels( false ) );

g[framebox( 1 )] << yaxis( show major ticks( false ), show minor ticks( false ), show labels( false ) );

g[axis box( 1 )] << remove axis label;

g[axis box( 2 )] << remove axis label;

// hide the inner border

g[frame box( 1 )] << Left( 0 ); // no line on left, etc

g[frame box( 1 )] << Right( 0 );

g[frame box( 1 )] << top( 0 );

g[frame box( 1 )] << bottom( 0 );

// shrink and hide the outer border too

g[Border Box( 1 )] << Left( 0 ); // no space on left, etc

g[Border Box( 1 )] << Right( 0 );

g[Border Box( 1 )] << Top( 0 );

g[Border Box( 1 )] << bottom( 0 );

g[Border Box( 1 )] << sides( 0 ); // draw no sides (1+2+4+8 would be all four sides)

s = Slider Box( 0, .5, SliderValue, SliderFunction ); // slider range 0 to .5

SliderValue = .25; // initial value, becomes current value when slider is moved

SliderFunction = Function( {}, g[frame box( 1 )] << reshow ); // reshow the graph when the slider moves

// put it all together in a window

New Window( "Example",

Border Box(

Left( 10 ), Right( 10 ), top( 10 ), bottom( 10 ),

Lineup Box( N Col( 1 ), g, s )

)

);


Article Labels

    There are no labels assigned to this post.

Article Tags