bugGNU Octave - Bugs: bug #50509, Tick labels are "added"...


bug #50509: Tick labels are "added" in tick=auto, label=manual mode

Submitted by:  Dan Sebald <sebald>
Submitted on:  Fri Mar 10 17:47:31 2017  
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: NoneAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Fri Mar 10 18:14:53 2017, comment #1:

Please review the attached patch. It seems that Octave does all the work of generating 'xtick' and 'xticklabel' (regardless of the tick mode and label mode) and there really is no interpretation left for gnuplot beyond just using what is present. So, I've removed all but the one route for generating ticks in a command and dropped the "add".

(file #39966)

Dan Sebald <sebald>
Fri Mar 10 17:47:31 2017, original submission:

This is a very subtle bug in which some vestigial tick labels that gnuplot automatically sets remain after octave does a manual placement of tick labels. It only happens when the gnuplot auto placement doesn't agree with octave's auto placement of ticks.

This should illustrate:

For that choice of signal and x-range, gnuplot's automatic ticks are 0, 100, 200, 300, 400, 500, 600, 700, 800. The set command is an attempt to leave the ticks but drop the labels. However, in the plot 100, 300, 500, 700 are all still visible.

Here is pertinent gnuplot code that is produced by the above sequence:

If I manually change the above lines to

Things look as expected... well, to some degree. The result still leaves extra blank space along the bottom for tick labels even though there are none, but I don't know whether it should be gnuplot or octave's roll to realize this.

Anyway, the logic must not be quite right with the following from _gnuplot_drawnow_axes_.m:

Dan Sebald <sebald>


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

Attach File(s):

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -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):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Mar 10 18:14:53 2017sebaldAttached File-=>Added octave-no_gnuplot_auto_ticks-djs2017mar10.patch, #39966

    Back to the top

    Powered by Savane 3.1-cleanup1