bugGNU Octave - Bugs: bug #52140, gnuplot toolkit produces improper...

 
 

bug #52140: gnuplot toolkit produces improper syntax when there is a single tic mark

Submitter:  Dan Sebald <sebald>
Submitted:  Thu 28 Sep 2017 08:55:46 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 28 Sep 2017 10:26:35 PM UTC, comment #5: 

Yes, I'll fix that within the next day and post a new bug report.  For my reverence, the important difference when there are no xtics and ytics, via drawnow is that


-set border 0
-set arrow 1 nohead nofilled front lc rgb "#262626" linewidth 0.500 from graph 0,0,0 to graph 1,0,0
-set arrow 3 nohead nofilled front lc rgb "#262626" linewidth 0.500 from graph 0,0,0 to graph 0,1,0


The arrows, should still be present.

Dan Sebald <sebald>
Thu 28 Sep 2017 10:01:46 PM UTC, comment #4: 

Aaah, okay.  I checked with the following example and the patch does fix the problem.


graphics_toolkit gnuplot
gca
set (gca, "xtick", 0.5)


I checked in the change here (http://hg.savannah.gnu.org/hgweb/octave/rev/2cc851e8e03f).

Incidentally, the following code produces a blank figure in gnuplot, but not in qt or fltk.


gca
set (gca, "xtick", [])
set (gca, "ytick", [])


Do we care?  If you have an actual object, like a line, then the axes doesn't disappear even when the ticks do.




Rik <rik5>
Group administrator
Thu 28 Sep 2017 09:42:03 PM UTC, comment #3: 

My code had both a fix for #52135 and this.  I selected only the toolkit mods for this patch.

Dan Sebald <sebald>
Thu 28 Sep 2017 09:35:42 PM UTC, comment #2: 

With or without patch, I get an error when trying to execute the sample code.

With patch:


octave:1> graphics_toolkit gnuplot
octave:2> bar (1, [3; 4], 'grouped')
error: wrong type argument 'matrix'
error: set: argument 0 must be a property name
error: called from
    __bar__>bars at line 338 column 7
    __bar__ at line 199 column 12
    bar at line 118 column 16


This is on the development branch (392afc740749), gnuplot 5.0.3, GNUTERM=qt.


Rik <rik5>
Group administrator
Thu 28 Sep 2017 09:01:54 PM UTC, comment #1: 

Patch attached.

(file #41953)

Dan Sebald <sebald>
Thu 28 Sep 2017 08:55:46 PM UTC, original submission:  

While debugging something having to do with bar(), I came across the following (any code that produces a single tic should do):


octave:1> bar (1, [3; 4], 'grouped')

multiplot> set xtics in scale  1.4 border mirror ( , 1) font ",10";
                                                   ^
           line 0: invalid expression


where "multiplot" is a gnuplot stdout output, not an Octave stderr output.

Dan Sebald <sebald>

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by sebald (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-09-28 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2017-09-28 rik5 StatusNone Confirmed
    2017-09-28 sebald Attached File- Added octave-gnuplot_single_tic-djs2017sep28.patch, #41953

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code