bugGNU Octave - Bugs: bug #31920, changing {x,y,z}tickmode to...

 
 

bug #31920: changing {x,y,z}tickmode to "auto" doesn't update {x,y,z}tick values

Submitter:  Ben Abbott <bpabbott>
Submitted:  Sat 18 Dec 2010 05:17:23 PM UTC
   
 
Category:  Plotting Severity:  4 - Important
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  logari81
Originator Name:  Ben Abbott Open/Closed:  * Closed
Release:  * dev Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 14 Feb 2011 11:48:05 PM UTC, comment #3: 

This appear to be fully fixed in the dev sources, with even the position of the labels working correctly, so I'm closing this

D.

David Bateman <dbateman>
Group Member
Sun 19 Dec 2010 09:30:10 PM UTC, comment #2: 

I've pushed the changeset for the tickmode.

Can the text object's positionmode and rotationmode be handled in the backend as well, or is it best to push your changeset, 3_redraw-axes-after-label-set.changeset?

Ben Abbott <bpabbott>
Group Member
Sun 19 Dec 2010 09:35:07 AM UTC, comment #1: 

The attached patch should fix this problem.

(file #22234)

Konstantinos Poulios <logari81>
Sat 18 Dec 2010 05:17:23 PM UTC, original submission:  

When the mode for the axes tick values or labels are changed from manual to auto, the values are not updated.


clf
h = surf (peaks);
get (gca, "xtick")
ans =    0   10   20   30   40   50
set (gca, "xtick", [])
set (gca, "xtickmode", "auto")
get (gca, "xtick")
ans = [](0x0)


This happens for both gnuplot and fltk.

I'd expect changing the mode to trigger the backend to update the {x,y,z}tick values in the same way changing the xlimmode to "auto" triggers an update to {x,y,z}lim.

There is a similar feature when changing the {x,y,z}labels or title (fltk only)


clf
px = get (xlabel ('hello world'), 'position')
px =   0   0   0
drawnow
get (get (gca, "xlabel"), "position")
ans =   0.50000  -0.05260   0.00000


For comparison, Matlab returns [0.5000  -0.0526   0.0000] for both.


Ben Abbott <bpabbott>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #22234:  update-tickmode.changeset added by logari81 (2KiB - application/octet-stream - patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by siko1056 (Updated the item)
  • -email is unavailable- added by dbateman (Posted a comment)
  • -email is unavailable- added by logari81 (Updated the item)
  • -email is unavailable- added by bpabbott (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-09-28 siko1056 StatusPatch Submitted Fixed
    2011-02-14 dbateman Open/ClosedOpen Closed
    2011-02-12 logari81 Assigned toNone logari81
    2010-12-19 bpabbott StatusNone Patch Submitted
    2010-12-19 logari81 Attached File- Added update-tickmode.changeset, #22234
    2010-12-18 bpabbott Severity3 - Normal 4 - Important

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code