Index of /ctan/graphics/metapost/contrib/macros/matlab/
Name | Last Modified | Size | Type |
../ | | - | Directory |
Makefile | 2005-Mar-07 00:00:00 | 0.4K | text/x-makefile;charset=utf-8 |
README | 2005-Mar-07 00:00:00 | 1.0K | text/plain;charset=utf-8 |
example.mp | 2005-Mar-08 00:00:00 | 0.5K | application/octet-stream |
latexmp.mp | 2005-Apr-06 23:00:00 | 15.4K | application/octet-stream |
lstmp.tex | 2005-Mar-07 00:00:00 | 4.0K | application/x-tex |
matlab.mp | 2005-Mar-08 00:00:00 | 9.3K | application/octet-stream |
matlab.tex | 2005-Mar-08 00:00:00 | 5.2K | application/x-tex |
sample_data | 2005-Mar-08 00:00:00 | 0.2K | application/octet-stream |
simple.mp | 2005-Mar-08 00:00:00 | 0.7K | application/octet-stream |
user_guide.pdf | 2005-Mar-08 00:00:00 | 54.7K | application/pdf |
matlab.mp ------- Metapost data plotting in matlab style
Yang Yang [email protected]
March 3 2005
Matlab has powerful data plotting ability, but one annoying problem
prevents it from being perfect: when you increase the linewidth, the
dotted line size stays the same, so the plotted line no longer looks
like a dotted line.
another problem is matlab bug: it oftern cuts away some curves and
captions.
plus, matlab is expensive. on the other hand, the free gnuplot also
doesn't produce very satisfactory visual effects.
I got accustomed to matlab's easy interface. so I want to integerate
the powerful graphic function of Metapost and the easy interface of
Matlab. so I wrote this script matlab.mp. this is based on graph.mp, I
just collected the data into 2-D arrays, and remembered the line
styles, so it's easy to plot out legends.
FEATURES:
all kinds of line color, width, style (dotted/dashed, etc), and
markers. you can easily expand this by modifying the code.
easy interface. very similar to matlab
full power of latex in caption/legends, by using the latexmp package.