bugGNU Octave - Bugs: bug #38553, axis() command and badly re-drawn...

 
 

bug #38553: axis() command and badly re-drawn plots

Submitter:  Rik <rik5>
Submitted:  Tue 19 Mar 2013 09:57:04 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 13 Nov 2017 04:26:12 PM UTC, comment #3: 

I can't reproduce this anymore either.  I'm not sure whether the deep issue was actually fixed, or it is just less deterministic.  For the time being, however, I'll close the bug.

Rik <rik5>
Group administrator
Mon 13 Nov 2017 03:39:45 PM UTC, comment #2: 

@Rik: Are you still able to trigger this bug? I am not, neither with fltk nor with Qt.

Pantxo Diribarne <pantxo>
Group Member
Mon 17 Oct 2016 09:37:49 PM UTC, comment #1: 

I added an example which I think may be a clue, inspired from this thread on the help list:
http://octave.1599824.n4.nabble.com/Problems-with-the-ui-family-of-functions-tc4680125.html


x = 0:.2:10*pi;
subplot (2,1,1)
plot (x, sin(x))
xlim ([15 17])
subplot (2,1,2)
plot (x, sin(x))
for ii = 1:2:15
xlim ([ii 32-ii])
endfor


It shows that the length of the ticks is not deterministic, it somehow depends on how much times xlim has been called.


Pantxo Diribarne <pantxo>
Group Member
Tue 19 Mar 2013 09:57:04 PM UTC, original submission:  

There seems to be a problem when using the axis() command to manually set the axis size.  The problem is manifested as odd spacing of labels or odd calculated lengths for axis tick marks.  This may have something to do with turning off update routines while another update routine is executing.

Sample code exhibiting long x-tick lengths:


plot (1:100)
axis ([0 100 -50 250])
axis ([0 100 -50 50])


This produces the attached plot.  The commands need to be typed in individually.  If I put them in a file and source the file then everything works.

The following sample code causes the xlabel to be squished up against the x-axis labeling which is incorrect.


plot (1:100)
xlabel ('x-axis')
ylabel ('y-axis')
axis ([0 80 1 100])
axis ([0 80 -50 250])


See the second attached file for the produced plot.

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 #27635:  ytick_size.jpg added by rik5 (17KiB - image/jpeg)
file #27636:  xlabel_squish.jpg added by rik5 (17KiB - image/jpeg)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by bpabbott (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-11-13 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2013-08-01 bpabbott StatusNone Confirmed
    2013-03-19 rik5 Attached File- Added ytick_size.jpg, #27635
        Attached File- Added xlabel_squish.jpg, #27636

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code