bugGNU Octave - Bugs: bug #54162, legend in a quiver3 plot causes an...

 
 

bug #54162: legend in a quiver3 plot causes an error with gnuplot graphics toolkit

Submitter:  Thomas Hellsén <thomasikus>
Submitted:  Thu 21 Jun 2018 03:22:30 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  3 - Low Item Group:  Unexpected Error or Warning
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * 4.4.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 15 Feb 2024 08:47:38 PM UTC, comment #2: 

as we have largely deprecated gnuplot support, i'm reducing the priority on this report.

Nicholas Jankowski <nrjank>
Group Member
Thu 21 Jun 2018 03:41:05 PM UTC, comment #1: 

Confirmed.  When I exit Octave I also get a little bit more about the error from gnuplot itself which has printed to stderr.


octave:2> quiver3legend
error: data(3,_): but data has size 2x1
error: called from
    __gnuplot_draw_axes__>__gnuplot_write_data__ at line 2140 column 11
    __gnuplot_draw_axes__ at line 1732 column 9
    __gnuplot_draw_figure__ at line 164 column 17
    __gnuplot_drawnow__ at line 86 column 5
octave:3>
octave:3>
octave:3>
octave:3> exit

gnuplot> splot "-" binary format='%float64' record=31 using ($1):($2):($3) title "base line" with linespoints linestyle 9 , "-" binary format='%float64' record=93 using ($1):($2):($3) title "" with linespoints linestyle 10 , "-" binary format='%float64' record=124 using ($1):($2):($3) title "" with linespoints linestyle 11 , "-" binary format='%float64' record=1 using ($1):($2) title "vectors" with lines linestyle 12 ;
                                                                                                                                                                                                                                                                                                                                                                                           ^
         line 0: Need 1 or 3 columns for cartesian data




Rik <rik5>
Group administrator
Thu 21 Jun 2018 03:22:30 PM UTC, original submission:  

Using legend() in a quiver3() plot causes script execution to halt with the message

error: data(3,_): but data has size 2x1
error: called from
    __gnuplot_draw_axes__>__gnuplot_write_data__ at line 2144 column 11
    __gnuplot_draw_axes__ at line 1734 column 9
    __gnuplot_draw_figure__ at line 164 column 17
    __gnuplot_drawnow__ at line 86 column 5


This only seems to happen with graphics_toolkit("gnuplot"). Toolkits "qt" and "fltk" seem to work fine. A program which displays the error is attached as "quiver3legend.m". The error occurs in Octave 4.2.2 and 4.4.0 for MS Windows, as well as in 4.4.0 for Cygwin, all when using gnuplot.

/Thomas Hellsén

Thomas Hellsén <thomasikus>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #44404:  quiver3legend.m added by thomasikus (656B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nrjank (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by thomasikus (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-02-15 nrjank Priority5 - Normal 3 - Low
    2018-06-21 rik5 CategoryPlotting Plotting with gnuplot
        StatusNone Confirmed
        Operating SystemMicrosoft Windows Any
    2018-06-21 thomasikus Attached File- Added quiver3legend.m, #44404

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code