bugGNU Octave - Bugs: bug #55390, Axes do not respond to...

 
 

bug #55390: Axes do not respond to xcolor/ycolor after location set to 'origin'

Submitter:  None
Submitted:  Fri 04 Jan 2019 06:39:31 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Tim Antonelli Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 05 Jan 2019 10:30:07 PM UTC, comment #5: 

I've never used Octave Online, but I went to https://octave-online.net/ and typed "version" and got back 4.2.1.  This is very old.  In any case, the fix will be a part of the next stable release of Octave which is 5.0 and expected in the next few weeks.

Rik <rik5>
Group administrator
Sat 05 Jan 2019 07:17:25 PM UTC, comment #4: 

Thanks all.  The minimal example


clf;
hax = gca;
plot (1:10);
set (hax, 'xaxislocation', 'origin');
set (hax, 'xcolor', 'm');


appears to work in Octave Online, but only because the x-axis coincides with the box surrounding the axes.  The example


clf;
hax = gca;
plot (1:10);
set (hax, 'xaxislocation', 'origin');
set (hax, 'xcolor', 'm');
box off


still fails to produce a magenta x-axis (only the numbers change).

My apologies if it is working and there's simply a delay before it updates in Octave Online.

Tim Antonelli <tantonelli>
Sat 05 Jan 2019 06:34:50 PM UTC, comment #3: 

Works for me.  Marking as fixed and closing report.

Rik <rik5>
Group administrator
Sat 05 Jan 2019 11:48:07 AM UTC, comment #2: 

Thanks for reporting and confirming.

Looks like a copy & paste error. I fixed it on stable here:
http://hg.savannah.gnu.org/hgweb/octave/rev/a665b4823da9

Marking as ready for test.

Markus Mützel <mmuetzel>
Group administrator
Fri 04 Jan 2019 07:58:57 PM UTC, comment #1: 

Confirmed.  Minimal example


clf;
hax = gca;
plot (1:10);
set (hax, 'xaxislocation', 'origin');
set (hax, 'xcolor', 'm');


This should result in a magenta x-axis, but does not.

Rik <rik5>
Group administrator
Fri 04 Jan 2019 06:39:31 PM UTC, original submission:  

In Octave Online, once the axes locations are set to 'origin' using

set(gca,'XAxisLocation','origin','YAxisLocation','origin'),

the axes are oddly colored green (x) and  blue (y), and they no longer respond to color changes using, e.g.

set(gca,'xcolor','k','ycolor','k').

Only the surrounding box is affected by the color changes, although the central axes still respond to changes in 'linewidth'.  This bug does not appear in MATLAB 2017a, which allows you change the color of origin-located axes.

I've attached a minimal example.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #45870:  axis_color_bug.m added by None (511B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tantonelli (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by None (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 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-05 rik5 Open/ClosedOpen Closed
    2019-01-05 rik5 StatusReady For Test Fixed
    2019-01-05 mmuetzel StatusConfirmed Ready For Test
    2019-01-04 rik5 CategoryOctave Function Plotting with OpenGL
        Item GroupNone Incorrect Result
        StatusNone Confirmed
        Releaseother dev
        Operating SystemMac OS Any
    2019-01-04 None Attached File- Added axis_color_bug.m, #45870

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code