[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56968] Setting 'edgecolor' of legend does not
From: |
Valdas |
Subject: |
[Octave-bug-tracker] [bug #56968] Setting 'edgecolor' of legend does not work when specified in one command |
Date: |
Mon, 30 Sep 2019 08:49:06 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0 |
URL:
<https://savannah.gnu.org/bugs/?56968>
Summary: Setting 'edgecolor' of legend does not work when
specified in one command
Project: GNU Octave
Submitted by: zmogas
Submitted on: Mon 30 Sep 2019 12:49:02 PM UTC
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
Try this code:
close all; x=[-pi:0.1:pi]; h_p=plot(x,sin(x),x,cos(x));
h_l=legend([h_p(1),h_p(2)],{'sinusas','kosinusas'},'location','northoutside','orientation','horizontal','edgecolor',[0,1,0]);
Which for me produces plot and legend with black border instead of green (see
'fig_1.png'; result is same when plotted to file, see 'untitled.gif');
Later changing color through 'set' command has no effect ('fig_2.png'):
set(h_l,'edgecolor',[0,1,0])
But if I change color to another then color or legend border changes
('fig_3.png'):
set(h_l,'edgecolor',[0,0,1])
_System_:
Operating System: Kubuntu 19.04
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.12.2
Kernel Version: 5.0.0-29-generic
OS Type: 64-bit
Processors: 16 × AMD Ryzen 7 1700X Eight-Core Processor
Memory: 15,7 GiB
_Octave_:
version 6.0.0
graphics_toolkit = qt
_hg summary_:
parent: 27439:251056aeba5d tip
Align negative numbers correctly with g format (bug #56940).
branch: default
bookmarks: *@
commit: 2222 unknown (clean)
update: (current)
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 30 Sep 2019 12:49:04 PM UTC Name: untitled.gif Size: 1MiB By:
zmogas
<http://savannah.gnu.org/bugs/download.php?file_id=47589>
-------------------------------------------------------
Date: Mon 30 Sep 2019 12:49:04 PM UTC Name: fig_2.png Size: 38KiB By:
zmogas
<http://savannah.gnu.org/bugs/download.php?file_id=47590>
-------------------------------------------------------
Date: Mon 30 Sep 2019 12:49:04 PM UTC Name: fig_3.png Size: 38KiB By:
zmogas
<http://savannah.gnu.org/bugs/download.php?file_id=47591>
-------------------------------------------------------
Date: Mon 30 Sep 2019 12:49:02 PM UTC Name: fig_1.png Size: 47KiB By:
zmogas
<http://savannah.gnu.org/bugs/download.php?file_id=47588>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56968>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #56968] Setting 'edgecolor' of legend does not work when specified in one command,
Valdas <=