%3CLINGO-SUB%20id%3D%22lingo-sub-29709%22%20slang%3D%22en-US%22%3ECreazione%20di%20grafici%20anonimi%20in%20JMP%208%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-29709%22%20slang%3D%22en-US%22%3E%3CP%3ECome%20posso%20utilizzare%20JSL%20per%20creare%20un%20grafico%20senza%20etichette%20sugli%20assi%3F%20Ci%20sono%20molte%20ragioni%20per%20cui%20potresti%20volerlo%20fare%3B%20forse%20stai%20creando%20un%20controllo%20dashboard%20che%20mostra%20un'immagine%20personalizzata%2C%20o%20forse%20hai%20dati%20che%20non%20hanno%20bisogno%20di%20etichette.%20%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EAd%20ogni%20modo%2C%20ci%20sono%20due%20punti%20in%20cui%20cercare%20di%20far%20sparire%20le%20etichette%3A%20le%20etichette%20dei%20segni%20di%20graduazione%20(0%2C%2010%2C%2020%2C%20...%20100)%20e%20l'etichetta%20dell'asse%20(un%20nome%20di%20variabile%20come%20Altezza).%20%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EUsiamo%20il%20comando%20JSL%20Graph%20Box%20per%20creare%20il%20grafico%20come%20questo%20(preso%20direttamente%20dalla%20Guida-%26gt%3B%20Indici-%26gt%3B%20Funzioni%20JSL-%26gt%3B%20Descrizione%20casella%20grafica)%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%3ENuova%20finestra%20(%22Esempio%22%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20Graph%20Box%20(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Dimensione%20del%20fotogramma%20(300%2C%20300)%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20xaxis%20(mostra%20le%20zecche%20principali%20(false)%2C%20mostra%20le%20zecche%20minori%20(false)%2C%20mostra%20le%20etichette%20(false))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20yaxis%20(mostra%20le%20principali%20zecche%20(false)%2C%20mostra%20le%20zecche%20minori%20(false)%2C%20mostra%20le%20etichette%20(false))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Marker%20(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Marker%20State%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%2C%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)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Colore%20penna%20(%22Blu%22)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Line%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)%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%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%3EPer%20eliminare%20le%20etichette%20dei%20segni%20di%20graduazione%2C%20aggiungi%20due%20comandi%20inviati%20agli%20assi%20xey%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%20Graph%20Box%20(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Dimensione%20del%20fotogramma%20(300%2C%20300)%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20xaxis%20(mostra%20le%20zecche%20principali%20(false)%2C%20mostra%20le%20zecche%20minori%20(false)%2C%20mostra%20le%20etichette%20(false))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20yaxis%20(mostra%20le%20principali%20zecche%20(false)%2C%20mostra%20le%20zecche%20minori%20(false)%2C%20mostra%20le%20etichette%20(false))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Marker%20(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Marker%20State%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%2C%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)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Colore%20penna%20(%22Blu%22)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Line%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)%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%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%3EE%20per%20eliminare%20le%20etichette%20degli%20assi%2C%20aggiungi%20altri%20due%20comandi%20inviati%20agli%20assi%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%3ENuova%20finestra%20(%22Esempio%22%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20g%20%3D%20Graph%20Box%20(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Dimensione%20del%20fotogramma%20(300%2C%20300)%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20xaxis%20(mostra%20le%20zecche%20principali%20(false)%2C%20mostra%20le%20zecche%20minori%20(false)%2C%20mostra%20le%20etichette%20(false))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20yaxis%20(mostra%20le%20principali%20zecche%20(false)%2C%20mostra%20le%20zecche%20minori%20(false)%2C%20mostra%20le%20etichette%20(false))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Marker%20(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Marker%20State%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%2C%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)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Colore%20penna%20(%22Blu%22)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Line%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)%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Eg%20%5Bbox%20asse%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%5Bbox%20asse%20(2)%5D%20%26lt%3B%26lt%3B%20rimuovere%20l'etichetta%20dell'asse%3B%3C%2FP%3E%3CP%3E%2F%2F%20%C3%A8%20possibile%20rimuovere%20le%20etichette%20dei%20segni%20di%20graduazione%20in%20questo%20modo%2C%20soprattutto%20se%20non%20si%20utilizza%20il%20comando%20Graph%20Box%3C%2FP%3E%3CP%3E%2F%2F%20g%20%5Bframebox%20(1)%5D%20%26lt%3B%26lt%3B%20xaxis%20(mostra%20le%20zecche%20principali%20(false)%2C%20mostra%20le%20zecche%20minori%20(false)%2C%20mostra%20le%20etichette%20(false))%3B%3C%2FP%3E%3CP%3E%2F%2F%20g%20%5Bframebox%20(1)%5D%20%26lt%3B%26lt%3B%20yaxis%20(mostra%20le%20zecche%20principali%20(false)%2C%20mostra%20le%20zecche%20minori%20(false)%2C%20mostra%20le%20etichette%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(Bonus)%20%3C%2FSTRONG%3E%20Per%20rimuovere%20anche%20il%20frame%2C%20invia%20quattro%20comandi%20al%20frame%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%3ENuova%20finestra%20(%22Esempio%22%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20g%20%3D%20Graph%20Box%20(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Dimensione%20del%20fotogramma%20(300%2C%20300)%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20xaxis%20(mostra%20le%20zecche%20principali%20(false)%2C%20mostra%20le%20zecche%20minori%20(false)%2C%20mostra%20le%20etichette%20(false))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20yaxis%20(mostra%20le%20principali%20zecche%20(false)%2C%20mostra%20le%20zecche%20minori%20(false)%2C%20mostra%20le%20etichette%20(false))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Marker%20(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Marker%20State%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%2C%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)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Colore%20penna%20(%22Blu%22)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Line%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)%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Eg%20%5Bbox%20asse%20(1)%5D%20%26lt%3B%26lt%3B%20rimuovere%20l'etichetta%20dell'asse%3B%3C%2FP%3E%3CP%3Eg%20%5Bbox%20asse%20(2)%5D%20%26lt%3B%26lt%3B%20rimuovere%20l'etichetta%20dell'asse%3B%3C%2FP%3E%3CP%3Eg%20%5Bframe%20box%20(1)%5D%20%26lt%3B%26lt%3B%20left%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5Bframe%20box%20(1)%5D%20%26lt%3B%26lt%3B%20right%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5Bframe%20box%20(1)%5D%20%26lt%3B%26lt%3B%20in%20alto%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5Bframe%20box%20(1)%5D%20%26lt%3B%26lt%3B%20bottom%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%3EEcco%20un%20esempio%20completo%20con%20un%20cursore%20per%20farlo%20fare%20qualcosa%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%20Graph%20Box%20(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20Dimensione%20della%20cornice%20(100%2C%2020)%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20Colore%20penna%20(%22Blu%22)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20Funzione%20Y%20(50%20%2B%2050%20*%20Sin%20(x%20*%20SliderValue)%2C%20x)%3B%20%2F%2F%20il%20grafico%20%C3%A8%20un'onda%20sin%2C%20il%20periodo%20dipende%20da%20SliderValue%3C%2FP%3E%3CP%3E)%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%2F%2F%20rimuove%20gli%20ornamenti%20dal%20grafico%3C%2FP%3E%3CP%3Eg%20%5Bframebox%20(1)%5D%20%26lt%3B%26lt%3B%20xaxis%20(mostra%20le%20zecche%20principali%20(false)%2C%20mostra%20le%20zecche%20minori%20(false)%2C%20mostra%20le%20etichette%20(false))%3B%3C%2FP%3E%3CP%3Eg%20%5Bframebox%20(1)%5D%20%26lt%3B%26lt%3B%20yaxis%20(mostra%20le%20zecche%20principali%20(false)%2C%20mostra%20le%20zecche%20minori%20(false)%2C%20mostra%20le%20etichette%20(false))%3B%3C%2FP%3E%3CP%3Eg%20%5Bbox%20asse%20(1)%5D%20%26lt%3B%26lt%3B%20rimuovere%20l'etichetta%20dell'asse%3B%3C%2FP%3E%3CP%3Eg%20%5Bbox%20asse%20(2)%5D%20%26lt%3B%26lt%3B%20rimuovere%20l'etichetta%20dell'asse%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%2F%2F%20nascondi%20il%20bordo%20interno%3C%2FP%3E%3CP%3Eg%20%5Bframe%20box%20(1)%5D%20%26lt%3B%26lt%3B%20Left%20(0)%3B%20%2F%2F%20nessuna%20linea%20a%20sinistra%2C%20ecc%3C%2FP%3E%3CP%3Eg%20%5Bframe%20box%20(1)%5D%20%26lt%3B%26lt%3B%20Right%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5Bframe%20box%20(1)%5D%20%26lt%3B%26lt%3B%20in%20alto%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5Bframe%20box%20(1)%5D%20%26lt%3B%26lt%3B%20bottom%20(0)%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%2F%2F%20restringe%20e%20nasconde%20anche%20il%20bordo%20esterno%3C%2FP%3E%3CP%3Eg%20%5BBorder%20Box%20(1)%5D%20%26lt%3B%26lt%3B%20Left%20(0)%3B%20%2F%2F%20nessuno%20spazio%20a%20sinistra%2C%20ecc%3C%2FP%3E%3CP%3Eg%20%5BBorder%20Box%20(1)%5D%20%26lt%3B%26lt%3B%20Right%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5BBorder%20Box%20(1)%5D%20%26lt%3B%26lt%3B%20Superiore%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5BBorder%20Box%20(1)%5D%20%26lt%3B%26lt%3B%20bottom%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5BBorder%20Box%20(1)%5D%20%26lt%3B%26lt%3B%20lati%20(0)%3B%20%2F%2F%20disegna%20nessun%20lato%20(1%20%2B%202%20%2B%204%20%2B%208%20sarebbero%20tutti%20e%20quattro%20i%20lati)%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%20intervallo%20di%20scorrimento%20da%200%20a%200%2C5%3C%2FP%3E%3CP%3ESliderValue%20%3D%20.25%3B%20%2F%2F%20valore%20iniziale%2C%20diventa%20valore%20corrente%20quando%20viene%20spostato%20il%20cursore%3C%2FP%3E%3CP%3ESliderFunction%20%3D%20Function%20(%7B%7D%2C%20g%20%5Bframe%20box%20(1)%5D%20%26lt%3B%26lt%3B%20reshow)%3B%20%2F%2F%20ridisegna%20il%20grafico%20quando%20si%20sposta%20il%20cursore%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%2F%2F%20metti%20tutto%20insieme%20in%20una%20finestra%3C%2FP%3E%3CP%3ENuova%20finestra%20(%22Esempio%22%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20Border%20Box%20(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Sinistra%20(10)%2C%20Destra%20(10)%2C%20superiore%20(10)%2C%20inferiore%20(10)%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Lineup%20Box%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)%3B%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