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

 
 

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

Submitted by:  Rik <rik5>
Submitted on:  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

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

( 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>
Project 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>
Project Member
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>
Project 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>
Project Member
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>
Project Member
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>
Project Member
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>
Project 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>
Project 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>
Project 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)
  •  

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

    Only project 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.6