bugGNU Octave - Bugs: bug #51773, bar command creates illegible...

 
 

bug #51773: bar command creates illegible x-axis

Submitter:  Muhali <muhali>
Submitted:  Thu 17 Aug 2017 09:56:18 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
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
   

Sat 26 Aug 2017 12:11:56 AM UTC, comment #5: 

I changed the implementation of bar to switch to automatic selection of tick positions when the number of bars exceeds 15.  See http://hg.savannah.gnu.org/hgweb/octave/rev/d837f7f6e4aa.

Marking as fixed and closing report.

Rik <rik5>
Group administrator
Fri 25 Aug 2017 06:56:52 AM UTC, comment #4: 

at i=16 it starts printing every 2nd tick, at i=18 every 5th.

Muhali <muhali>
Thu 24 Aug 2017 10:04:03 PM UTC, comment #3: 

Can someone with access to Matlab try the following code?  I want to know the cutoff between displaying all the bars and switching over to automatic xtick generation.



for i = 8:20
  bar (ones (i,1));
  title (sprintf ('i = %d', i));
  pause
end




Rik <rik5>
Group administrator
Thu 24 Aug 2017 09:18:48 PM UTC, comment #2: 

The problem is probably in line 205 of _bar_.m


            set (hax, 'xtick', x(:,1));


this line sets the wrong tick labels

Avinoam Kalma <avinoam>
Group Member
Thu 24 Aug 2017 02:38:31 PM UTC, comment #1: 

just confirming this is also a different graphical output than that provided by matlab. see attached side-by-side.  same results in all three graphics toolkits.



Nicholas Jankowski <nrjank>
Group Member
Thu 17 Aug 2017 09:56:18 AM UTC, original submission:  

The bar command creates a tick label for every single number, so that for example

bar(rand(100,1))

becomes illegible.

Muhali <muhali>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #41641:  matlabcomparison.png added by nrjank (110KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by avinoam (Posted a comment)
  • -email is unavailable- added by nrjank (Updated the item)
  • -email is unavailable- added by muhali (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-08-26 rik5 StatusNeed Info Fixed
        Open/ClosedOpen Closed
    2017-08-25 avinoam StatusConfirmed Need Info
    2017-08-24 rik5 StatusNone Confirmed
    2017-08-24 nrjank Attached File- Added matlabcomparison.png, #41641

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code