I have datas from Matlab and I would like to plot them using PSTricks. My datas are in a .data file.
So far I have done a graph but only with Manual adjustment of the axes:
\psset{xunit=0.025mm, yunit=1cm}
\begin{pspicture}(-200,-0.5)(1900,4.25)
\fileplot[plotstyle=line,linewidth=1pt,
linecolor=blue]{coordonnees.data}
\psaxes[dx=400, Dx=400]{(->}(1900,4.1)
[$\mathbf{x}$,0][$\mathbf{y}$,90]
\psgrid[griddots=5,subgriddiv=1,
gridlabels=0pt, xunit=1cm, yunit=1cm](4,4)
\end{pspicture}
Which gives me something like this:
The graph is ok but I would like PSTricks to generate such squared graph (e.g. 4cm x 4cm) with the values of the axes automatically adjusted with regards to the datas contained in the .data file (I currently have to adjust it manually). How can I achieve this?
PSTricks
I have seen with respect to plotting with axes explicitly scales them insidetex
code; perhaps the\dataplot
command can do some automatic scaling?