[pstricks] \dataplot
Kazutaka Takahashi
kazutaka at MIT.EDU
Wed Nov 5 07:19:47 CET 2003
Hi.
I am having a problem to use \dataplot to plot the data generated in Matlab.
Here is what I have:
\psset{xunit=1cm,yunit=3cm}
\begin{pspicture}(-7.5,-0.4)(8,1.6)
\psaxes[ticks=x,labels=none]{-}(0,0)(-7.5,-0.5)(7.5,1.3)
\readdata{\step_4}{images/tfr_step.dat}
\listplot[linewidth=0.6mm]{\step_4}
\end{pspicture}
and in the .dat file I have the data in the following format:
[{ -7.50000000, -0.00056737},
{ -7.45000000, -0.00268778},
{ -7.40000000, -0.00476988},
{ -7.35000000, -0.00676153},
{ -7.30000000, -0.00861212},
{ -7.25000000, -0.01027382},
{ -7.20000000, -0.01170283},
{ -7.15000000, -0.01286048},
{ -7.10000000, -0.01371423},
{ -7.05000000, -0.01423864},
{ -7.00000000, -0.01441600},
{ -6.95000000, -0.01423694},
{ -6.90000000, -0.01370076},
{ -6.85000000, -0.01281556},
{ -6.80000000, -0.01159818},
{ -6.75000000, -0.01007391},
{ -6.70000000, -0.00827602},
{ -6.65000000, -0.00624499},
{ -6.60000000, -0.00402770},
{ -6.55000000, -0.00167632},
{ -6.50000000, 0.00075285},
{ -6.45000000, 0.00320074},
{ -6.40000000, 0.00560689},
{ -6.35000000, 0.00791094},
{ -6.30000000, 0.01005410},
{ -6.25000000, 0.01198060},
{ -6.20000000, 0.01363914},
{ -6.15000000, 0.01498423},
{ -6.10000000, 0.01597734},
{ -6.05000000, 0.01658802},
{ -6.00000000, 0.01679478},
{ -5.95000000, 0.01658572},
{ -5.90000000, 0.01595900},
{ -5.85000000, 0.01492308},
{ -5.80000000, 0.01349667},
{ -5.75000000, 0.01170843},
{ -5.70000000, 0.00959645},
{ -5.65000000, 0.00720750},
{ -5.60000000, 0.00459600},
{ -5.55000000, 0.00182284},
{ -5.50000000, -0.00104601},
{ -5.45000000, -0.00394100}]
Then, I keep getting the following error:
(./images/step4.latex
! Dimension too large.
\endpspicture ...oup \egroup \ifdim \wd \pst at hbox
=\z@ \else \fi \ht \pst at hb...
l.14 \end{pspicture}
I have no idea how to fix this... Any clue on this ?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20031105/eb952bc8/attachment.html
More information about the PSTricks
mailing list