xbasc();/// @@prerequisite t=-%pi:0.05:%pi; a=gca(); a.font_size=5; plot2d(t,sin(5*t).*exp(-t/2)) disp('\sciprompt{}hl=legend([''$\BS{}sin(5 t)\BS{}exp(-t/2)$''],4);');/// @@prerequisite hl=legend(['$\sin(5 t)\exp(-t/2)$'],4);/// @@prerequisite a.title.font_size=5; a.x_label.font_size = 5; a.y_label.font_size = 5; a.auto_ticks='off'; a.box="off"; a.x_location="middle"; a.y_location="middle"; xt=[-%pi,0,%pi]; a.x_ticks= tlist(['ticks','locations','labels'],xt,... /// @@prerequisite ["$-\pi$","$0$","$\pi$"]); /// @@prerequisite xtitle("","$x$","$y$"); /// @@prerequisite /// @@prerequisite just a tricky print of the previous lines for LaTeX output in sessioncmd mprintf('\\sciprompt{}a.x_ticks= tlist([''ticks'',''locations'',''labels''],xt,...'); /// @@prerequisite mprintf(' [""$-\\BS{}pi$"",""$0$"",""$\\BS{}pi$""]);'); /// @@prerequisite mprintf('\\sciprompt{}xtitle("""",""$x$"",""$y$"");'); /// @@prerequisite exec("xs2latex.sci"); xs2latex(xget("window"),"figps");