# this shows how the x title position didn't depend on the tick length. from javax.swing import JSlider, JOptionPane plot( None, xtitle='TTT', ytitle='HHH' ) def onSlide( e ): sl= e.getSource() dom.options.setTicklen( '%.1fem' % ( sl.getValue()/10. ) ) sl=JSlider(-10,10,stateChanged=onSlide) JOptionPane.showMessageDialog(None,sl)