%3CLINGO-SUB%20id%3D%22lingo-sub-29709%22%20slang%3D%22en-US%22%3EHaciendo%20gr%C3%A1ficas%20an%C3%B3nimas%20en%20JMP%208%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-29709%22%20slang%3D%22en-US%22%3E%3CP%3E%C2%BFC%C3%B3mo%20puedo%20usar%20JSL%20para%20hacer%20un%20gr%C3%A1fico%20sin%20etiquetas%20en%20los%20ejes%3F%20Hay%20muchas%20razones%20por%20las%20que%20podr%C3%ADas%20querer%20hacer%20esto%3B%20quiz%C3%A1s%20est%C3%A9%20creando%20un%20control%20de%20tablero%20que%20muestre%20una%20imagen%20personalizada%2C%20o%20tal%20vez%20tenga%20datos%20que%20no%20necesiten%20etiquetas.%20%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EDe%20todos%20modos%2C%20hay%20dos%20lugares%20donde%20mirar%20para%20hacer%20que%20las%20etiquetas%20desaparezcan%3A%20las%20etiquetas%20de%20marca%20de%20verificaci%C3%B3n%20(0%2C%2010%2C%2020%2C%20...%20100)%20y%20la%20etiqueta%20del%20eje%20(un%20nombre%20de%20variable%20como%20Altura).%20%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EUsemos%20el%20comando%20JSL%20Graph%20Box%20para%20crear%20el%20gr%C3%A1fico%20como%20este%20(tomado%20directamente%20de%20la%20Ayuda-%26gt%3B%20%C3%8Dndices-%26gt%3B%20Funciones%20JSL-%26gt%3B%20Descripci%C3%B3n%20del%20cuadro%20de%20gr%C3%A1fico)%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%3ENueva%20ventana%20(%22Ejemplo%22%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20Caja%20gr%C3%A1fica%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Tama%C3%B1o%20del%20marco%20(300%2C%20300)%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20xaxis%20(mostrar%20marcas%20mayores%20(falsas)%2C%20mostrar%20marcas%20menores%20(falsas)%2C%20mostrar%20etiquetas%20(falsas))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20yaxis%20(mostrar%20marcas%20mayores%20(falsas)%2C%20mostrar%20marcas%20menores%20(falsas)%2C%20mostrar%20etiquetas%20(falsas))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Marcador(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Estado%20del%20marcador%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%20Color%20de%20la%20pluma%20(%22azul%22)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20L%C3%ADnea%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%3EPara%20eliminar%20las%20etiquetas%20de%20marca%20de%20verificaci%C3%B3n%2C%20agregue%20dos%20comandos%20enviados%20a%20los%20ejes%20x%20e%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%20Caja%20gr%C3%A1fica%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Tama%C3%B1o%20del%20marco%20(300%2C%20300)%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20xaxis%20(mostrar%20marcas%20mayores%20(falsas)%2C%20mostrar%20marcas%20menores%20(falsas)%2C%20mostrar%20etiquetas%20(falsas))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20yaxis%20(mostrar%20marcas%20mayores%20(falsas)%2C%20mostrar%20marcas%20menores%20(falsas)%2C%20mostrar%20etiquetas%20(falsas))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Marcador(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Estado%20del%20marcador%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%20Color%20de%20la%20pluma%20(%22azul%22)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20L%C3%ADnea%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%3EY%20para%20eliminar%20las%20etiquetas%20de%20eje%2C%20agregue%20dos%20comandos%20m%C3%A1s%20enviados%20a%20los%20ejes%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%3ENueva%20ventana%20(%22Ejemplo%22%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20g%20%3D%20caja%20gr%C3%A1fica%20(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Tama%C3%B1o%20del%20marco%20(300%2C%20300)%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20xaxis%20(mostrar%20marcas%20mayores%20(falsas)%2C%20mostrar%20marcas%20menores%20(falsas)%2C%20mostrar%20etiquetas%20(falsas))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20yaxis%20(mostrar%20marcas%20mayores%20(falsas)%2C%20mostrar%20marcas%20menores%20(falsas)%2C%20mostrar%20etiquetas%20(falsas))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Marcador(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Estado%20del%20marcador%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%20Color%20de%20la%20pluma%20(%22azul%22)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20L%C3%ADnea%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%5Bcaja%20del%20eje%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%5Bcuadro%20de%20eje%20(2)%5D%20%26lt%3B%26lt%3B%20eliminar%20etiqueta%20de%20eje%3B%3C%2FP%3E%3CP%3E%2F%2F%20podr%C3%ADa%20eliminar%20las%20etiquetas%20de%20marca%20de%20esta%20manera%2C%20especialmente%20si%20no%20est%C3%A1%20usando%20el%20comando%20Graph%20Box%3C%2FP%3E%3CP%3E%2F%2F%20g%20%5Bframebox%20(1)%5D%20%26lt%3B%26lt%3B%20xaxis%20(mostrar%20marcas%20principales%20(falsas)%2C%20mostrar%20marcas%20menores%20(falsas)%2C%20mostrar%20etiquetas%20(falsas))%3B%3C%2FP%3E%3CP%3E%2F%2F%20g%20%5Bframebox%20(1)%5D%20%26lt%3B%26lt%3B%20yaxis%20(mostrar%20marcas%20principales%20(falsas)%2C%20mostrar%20marcas%20menores%20(falsas)%2C%20mostrar%20etiquetas%20(falsas))%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(Prima)%20%3C%2FSTRONG%3E%20Para%20eliminar%20el%20marco%20tambi%C3%A9n%2C%20env%C3%ADe%20cuatro%20comandos%20al%20marco%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%3ENueva%20ventana%20(%22Ejemplo%22%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20g%20%3D%20caja%20gr%C3%A1fica%20(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Tama%C3%B1o%20del%20marco%20(300%2C%20300)%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20xaxis%20(mostrar%20marcas%20mayores%20(falsas)%2C%20mostrar%20marcas%20menores%20(falsas)%2C%20mostrar%20etiquetas%20(falsas))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20yaxis%20(mostrar%20marcas%20mayores%20(falsas)%2C%20mostrar%20marcas%20menores%20(falsas)%2C%20mostrar%20etiquetas%20(falsas))%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Marcador(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Estado%20del%20marcador%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%20Color%20de%20la%20pluma%20(%22azul%22)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20L%C3%ADnea%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%5Bcuadro%20de%20eje%20(1)%5D%20%26lt%3B%26lt%3B%20eliminar%20etiqueta%20de%20eje%3B%3C%2FP%3E%3CP%3Eg%20%5Bcuadro%20de%20eje%20(2)%5D%20%26lt%3B%26lt%3B%20eliminar%20etiqueta%20de%20eje%3B%3C%2FP%3E%3CP%3Eg%20%5Bcuadro%20de%20marco%20(1)%5D%20%26lt%3B%26lt%3B%20izquierda%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5Bcuadro%20de%20marco%20(1)%5D%20%26lt%3B%26lt%3B%20derecha%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5Bcuadro%20de%20marco%20(1)%5D%20%26lt%3B%26lt%3B%20superior%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5Bcuadro%20de%20marco%20(1)%5D%20%26lt%3B%26lt%3B%20inferior%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%3EAqu%C3%AD%20hay%20un%20ejemplo%20completo%20con%20un%20control%20deslizante%20para%20hacer%20que%20haga%20algo%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%20caja%20gr%C3%A1fica%20(%3C%2FP%3E%3CP%3E%20%20%20%20%20%20Tama%C3%B1o%20del%20marco%20(100%2C%2020)%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20Color%20de%20la%20pluma%20(%22azul%22)%3B%3C%2FP%3E%3CP%3E%20%20%20%20%20%20Funci%C3%B3n%20Y%20(50%20%2B%2050%20*%20Sin%20(x%20*%20SliderValue)%2C%20x)%3B%20%2F%2F%20graph%20es%20una%20onda%20de%20pecado%2C%20el%20periodo%20depende%20de%20SliderValue%3C%2FP%3E%3CP%3E)%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%2F%2F%20eliminar%20adornos%20de%20la%20gr%C3%A1fica%3C%2FP%3E%3CP%3Eg%20%5Bframebox%20(1)%5D%20%26lt%3B%26lt%3B%20xaxis%20(mostrar%20marcas%20mayores%20(falsas)%2C%20mostrar%20marcas%20menores%20(falsas)%2C%20mostrar%20etiquetas%20(falsas))%3B%3C%2FP%3E%3CP%3Eg%20%5Bframebox%20(1)%5D%20%26lt%3B%26lt%3B%20yaxis%20(mostrar%20marcas%20mayores%20(falsas)%2C%20mostrar%20marcas%20menores%20(falsas)%2C%20mostrar%20etiquetas%20(falsas))%3B%3C%2FP%3E%3CP%3Eg%20%5Bcuadro%20de%20eje%20(1)%5D%20%26lt%3B%26lt%3B%20eliminar%20etiqueta%20de%20eje%3B%3C%2FP%3E%3CP%3Eg%20%5Bcuadro%20de%20eje%20(2)%5D%20%26lt%3B%26lt%3B%20eliminar%20etiqueta%20de%20eje%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%2F%2F%20esconder%20el%20borde%20interior%3C%2FP%3E%3CP%3Eg%20%5Bcuadro%20de%20marco%20(1)%5D%20%26lt%3B%26lt%3B%20izquierda%20(0)%3B%20%2F%2F%20sin%20l%C3%ADnea%20a%20la%20izquierda%2C%20etc.%3C%2FP%3E%3CP%3Eg%20%5Bcuadro%20de%20marco%20(1)%5D%20%26lt%3B%26lt%3B%20derecha%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5Bcuadro%20de%20marco%20(1)%5D%20%26lt%3B%26lt%3B%20superior%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5Bcuadro%20de%20marco%20(1)%5D%20%26lt%3B%26lt%3B%20inferior%20(0)%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%2F%2F%20reducir%20y%20ocultar%20el%20borde%20exterior%20tambi%C3%A9n%3C%2FP%3E%3CP%3Eg%20%5BCuadro%20de%20borde%20(1)%5D%20%26lt%3B%26lt%3B%20Izquierda%20(0)%3B%20%2F%2F%20no%20hay%20espacio%20a%20la%20izquierda%2C%20etc.%3C%2FP%3E%3CP%3Eg%20%5BCuadro%20de%20borde%20(1)%5D%20%26lt%3B%26lt%3B%20Derecha%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5BCuadro%20de%20borde%20(1)%5D%20%26lt%3B%26lt%3B%20Arriba%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5BCuadro%20de%20borde%20(1)%5D%20%26lt%3B%26lt%3B%20inferior%20(0)%3B%3C%2FP%3E%3CP%3Eg%20%5BCuadro%20de%20borde%20(1)%5D%20%26lt%3B%26lt%3B%20lados%20(0)%3B%20%2F%2F%20no%20dibuje%20lados%20(1%20%2B%202%20%2B%204%20%2B%208%20ser%C3%ADan%20los%20cuatro%20lados)%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Es%20%3D%20Cuadro%20de%20control%20deslizante%20(0%2C%20.5%2C%20SliderValue%2C%20SliderFunction)%3B%20%2F%2F%20rango%20deslizante%200%20a%20.5%3C%2FP%3E%3CP%3ESliderValue%20%3D%20.25%3B%20%2F%2F%20valor%20inicial%2C%20se%20convierte%20en%20valor%20actual%20cuando%20se%20mueve%20el%20control%20deslizante%3C%2FP%3E%3CP%3ESliderFunction%20%3D%20Function%20(%7B%7D%2C%20g%20%5Bcuadro%20de%20marco%20(1)%5D%20%26lt%3B%26lt%3B%20reshow)%3B%20%2F%2F%20volver%20a%20mostrar%20la%20gr%C3%A1fica%20cuando%20el%20control%20deslizante%20se%20mueve%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%2F%2F%20ponerlo%20todo%20junto%20en%20una%20ventana%3C%2FP%3E%3CP%3ENueva%20ventana%20(%22Ejemplo%22%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20Caja%20de%20borde%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Izquierda%20(10)%2C%20Derecha%20(10)%2C%20superior%20(10)%2C%20inferior%20(10)%2C%3C%2FP%3E%3CP%3E%20%20%20%20%20%20%20%20%20%20%20%20Caja%20de%20alineaci%C3%B3n%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