bugGNU Octave - Bugs: bug #45850, Minor grid lines in wrong...

 
 

bug #45850: Minor grid lines in wrong locations when using manually set xticks

Submitter:  Rik <rik5>
Submitted:  Mon 31 Aug 2015 02:45:40 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
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
   

Jump to the original submission

Tue 01 Nov 2016 10:37:46 PM UTC, comment #8: 

@Markus: Thanks for refreshing the patch.  I pushed it on the development branch here (http://hg.savannah.gnu.org/hgweb/octave/rev/0cbe4714ce1b).  Fixed, closing report.

Rik <rik5>
Group administrator
Fri 28 Oct 2016 12:43:47 PM UTC, comment #7: 

The attached refreshed patch should apply cleanly on a current tip.

(file #38831)

Markus Mützel <mmuetzel>
Group administrator
Fri 28 Oct 2016 04:40:07 AM UTC, comment #6: 

I'm sorry to ask again, but could you refresh your patch so it applies against the current development branch?  The 4.2 release is closed, and I'm now trying to get some of these enhancements into Mercurial.

Rik <rik5>
Group administrator
Wed 31 Aug 2016 04:22:11 PM UTC, comment #5: 

The last changeset did no longer apply cleanly on a current tip so I rebased it. It also no longer depends on fixes from other bugs and adds a demo to grid.m for the issue here.

(file #38396)

Markus Mützel <mmuetzel>
Group administrator
Thu 28 Jul 2016 04:05:41 PM UTC, comment #4: 

The atttached patch fixes some indentation issuesand removes some redundant calls to "calc_ticks_and_lims" with the previous changeset.

(file #38041)

Markus Mützel <mmuetzel>
Group administrator
Fri 15 Jul 2016 01:52:43 PM UTC, comment #3: 

The attached patch fixes the issue of minor grid lines not matching manually set x/y/zticks.

It applies on top of file #37876 from bug #45710.

(file #37897)

Markus Mützel <mmuetzel>
Group administrator
Mon 31 Aug 2015 03:57:56 PM UTC, comment #2: 

The plot in comment #1 attached as zzz.pdf is for the code


plot (1:10)
set (gca, 'xtick', [0, 1, pi, 7.3, 10])
grid minor


The corresponding plot made with Octave is attached as OctaveStrangeMajorTick.pdf.

(file #34777)

Rik <rik5>
Group administrator
Mon 31 Aug 2015 03:34:17 PM UTC, comment #1: 

Attached is the plot from Matlab 2015a
(zzz.pdf)

(file #34776)

Michael Godfrey <godfrey>
Group Member
Mon 31 Aug 2015 02:45:40 PM UTC, original submission:  

The minor grid lines can be in incorrect locations if the xticks are set to non-uniform values.

For the example script,


plot (1:10)
set (gca, 'xtick', [0 1 5 6 9 10])
grid minor


see the attached plots from Matlab and Octave.

Rik <rik5>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #37897:  grid_minor_manual.patch added by mmuetzel (7KiB - text/x-diff)
file #34777:  OctaveStrangeMajorTick.pdf added by rik5 (3KiB - application/pdf)
file #34776:  zzz.pdf added by godfrey (9KiB - application/pdf)
file #34774:  MatlabGridMinor.pdf added by rik5 (8KiB - application/pdf)
file #34775:  OctaveGridMinor.pdf added by rik5 (3KiB - application/pdf)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Updated the item)
  • -email is unavailable- added by godfrey (Updated the item)
  • -email is unavailable- added by rik5 (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 12 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-01 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2016-10-28 mmuetzel Attached File- Added bug45850_grid_minor_manual_v4.patch, #38831
    2016-08-31 mmuetzel Attached File- Added bug45850_grid_minor_manual_v3.patch, #38396
    2016-07-28 mmuetzel Attached File- Added bug45850_grid_minor_manual_v2.patch, #38044
    2016-07-28 mmuetzel Attached File- Added bug45850_grid_minor_manual_v2.patch, #38041
    2016-07-15 mmuetzel Attached File- Added grid_minor_manual.patch, #37897
    2015-08-31 rik5 Attached File- Added OctaveStrangeMajorTick.pdf, #34777
        StatusNone Confirmed
    2015-08-31 godfrey Attached File- Added zzz.pdf, #34776
    2015-08-31 rik5 Attached File- Added MatlabGridMinor.pdf, #34774
        Attached File- Added OctaveGridMinor.pdf, #34775

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code