d = new FunctionDialog(); d.setFunction("cos(x)^2"); d.setPoints(200); d.setRange(-10,10); d.setDestination(2); d.setLabel(); st = newStyle(); st.setColor("red"); d.setStyle(st); sy = newSymbol(); sy.setType(10); d.setSymbol(sy); d.Apply(); w = activeWorksheet(); p = w.get2DPlot(w.API()); a = p.getAxis(1); a.setScale(LOG10); w.redraw();