diff options
Diffstat (limited to 'Master/texmf-dist/doc/metapost/latexmp/lmp-grph.mp')
-rw-r--r-- | Master/texmf-dist/doc/metapost/latexmp/lmp-grph.mp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/metapost/latexmp/lmp-grph.mp b/Master/texmf-dist/doc/metapost/latexmp/lmp-grph.mp new file mode 100644 index 00000000000..1602717b6ab --- /dev/null +++ b/Master/texmf-dist/doc/metapost/latexmp/lmp-grph.mp @@ -0,0 +1,34 @@ +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 |