I'd like to plot with PSTricks some data from Matlab.
I usually plot these data using the imagesc
and the colorbar
in Matlab, but I'd rather do it in LaTeX…
Here is the picture I want to plot in LaTeX :
It's actually plotting 2 vectors
(time and velocity) and 1 array
(the color), but I can't figure how to do it…
Is there a special PSTricks package
to do it ? If it could read the 3 data files, I'd be simple…
If it's just a couple of commands, it's good too…
Edit : providing data files
Here are the data (all are .csv files):
-
time is an 175×1 matrix
-
velocity is an 14112×1 matrix
-
tension is ans 14112×175 matrix…
I compressed them in a zip file
The data are quite huge, but an example with 10 points is good too..
Best Answer
It uses the data file from Malipivo and the
pstricks-add.tex
from http://texnik.dante.de/tex/generic/pstricks-add/. Run it withshell-escape
is needed to run from within the document the externaltexlua
which creates on the fly the data file with PSTricks structure. The data files must be ibn the same directory as this document: