|
From: | Rik |
Subject: | Re: Octave-maintainers Digest, Vol 104, Issue 4 |
Date: | Tue, 04 Nov 2014 11:29:15 -0800 |
On 11/04/2014 09:00 AM,
address@hidden wrote:
Hello, I made a few improvements to the "dataframe" package recently. For now, plotting one column versus another one work, but vector versus matrix fails. Simple example: t=((0:10).'/10); x=[sin(2*pi*t) cos(2*pi*t)]; plot(t, x) %# OK plot(dataframe(t), dataframe(x)) error: invalid value for array property "ydata" error: called from __line__ at line 119 column 16 line at line 54 column 8 __plt__>__plt2vm__ at line 432 column 15 __plt__>__plt2__ at line 245 column 14 __plt__ at line 113 column 17 plot at line 220 column 10 stopped in /usr/share/octave/3.8.2/m/plot/draw/private/__line__.m error: horizontal dimensions mismatch (11x1 vs 2x1) error: called from: error: /usr/share/octave/3.8.2/m/plot/util/private/__go_draw_axes__.m at line -1, column -1 error: /usr/share/octave/3.8.2/m/plot/util/private/__go_draw_figure__.m at line 161, column 19 error: /usr/share/octave/3.8.2/m/plot/util/__gnuplot_drawnow__.m at line -1, column -1 context: octave-3.8.2 on cygwin; dataframe from the sourceforge repo. I would like to solve this issue before making a new release. How can I debug this issue ? Try debug_on_error (1) and then execute the failing example code. This will put you at the debug prompt right where the error occurred and you can inspect variables and see what is going on. Judging by the message, horizontal dimensions mismatch (11x1 vs 2x1) I'm guessing that the x data is being presented as a cell array or object instead of an actual matrix. --Rik |
[Prev in Thread] | Current Thread | [Next in Thread] |