input latexmp ; input graph ; % create data file write "10 2e-2" to "lmp-data.dat" ; write "20 3e4" to "lmp-data.dat" ; write "30 8e4" to "lmp-data.dat" ; write "100 7e4" to "lmp-data.dat" ; write "130 2e5" to "lmp-data.dat" ; write "200 4e5" to "lmp-data.dat" ; write "500 8e5" to "lmp-data.dat" ; write "600 1e7" to "lmp-data.dat" ; write "1000 2e7" to "lmp-data.dat" ; write "2000 8e7" to "lmp-data.dat" ; write EOF to "lmp-data.dat" ; % setupLaTeXMP( mode=normal,% 'graph' package does not work in rerun mode packages="mathpazo") ; init_numbers(textext("$-$"),textext("$1$"),textext("${\times}10$"), textext("${}^-$"),textext("${}^2$")) ; Fe_base:=textext("$10$") ; beginfig(1); draw begingraph(6cm,4cm) setcoords(linear,log); gdraw "lmp-data.dat" ; endgraph ; endfig; end