bugGNU Octave - Bugs: bug #52141, gnuplot toolkit drops axis lines...


bug #52141: gnuplot toolkit drops axis lines when there are no tick marks

Submitted by:  Dan Sebald <sebald>
Submitted on:  Fri 29 Sep 2017 09:14:05 AM UTC  
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Inaccurate Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sat 14 Oct 2017 03:11:09 PM UTC, comment #3:

Thanks Dan. I committed your patch without change here (http://hg.savannah.gnu.org/hgweb/octave/rev/d72ba9191352). Closing report.

Rik <rik5>
Project Administrator
Wed 04 Oct 2017 07:20:07 PM UTC, comment #2:

OK, I've had a look at this again. The new changeset should be about right. I made the x and y-axis tick code symmetric, i.e., basically the same code. More than that, the logic seemed to simplify quite a bit to the point where it seemed easier to not use maybe_do_xtick_mirror() and maybe_do_x2tick_mirror(), so I've removed those routines. I think it is basically the same behavior in the end; I suppose in the evolution of the code it became somewhat crufty.

(file #42063)

Dan Sebald <sebald>
Fri 29 Sep 2017 09:32:09 AM UTC, comment #1:

Here's a first patch attempt that seems to work. Basically, I shuffled the code around and regrouped lines accordingly, there being two structural changes, always doing do_border_2d() and x-tick mirror processing regardless of y-ticks being empty. But I want to think about things a little because the conditional tests for X aren't quite symmetric with the conditional tests for Y. I'm wondering why that is.

(file #41961)

Dan Sebald <sebald>
Fri 29 Sep 2017 09:14:05 AM UTC, original submission:

The following should have two visible lines on the screen but comes out as a blank page:

Furthermore, the following has tick marks mirrored on the x-axis, which shouldn't happen:

Dan Sebald <sebald>


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

Attach File(s):


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by sebald (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 14 Oct 2017 03:11:48 PM UTCrik5Open/ClosedOpen=>Closed
    Sat 14 Oct 2017 03:11:09 PM UTCrik5StatusNone=>Fixed
    Wed 04 Oct 2017 07:20:07 PM UTCsebaldAttached File-=>Added octave-gnuplot_axis_lines_and_ticks-djs2017oct04.patch, #42063
    Fri 29 Sep 2017 09:32:09 AM UTCsebaldAttached File-=>Added octave-gnuplot_axis_lines_and_ticks-djs2017sep29.txt, #41961

    Back to the top

    Powered by Savane 3.1-cleanup1