octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #50511] colororder property seems to be reset


From: Andrei Kramer
Subject: [Octave-bug-tracker] [bug #50511] colororder property seems to be reset on plot
Date: Fri, 10 Mar 2017 13:48:30 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

URL:
  <http://savannah.gnu.org/bugs/?50511>

                 Summary: colororder property seems to be reset on plot
                 Project: GNU Octave
            Submitted by: akramer
            Submitted on: Fri 10 Mar 2017 06:48:29 PM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Andrei Kramer
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

= ColorOrder =
a set colororder property is reset when plot() is called.

It is a freshly compiled octave-4.2.1

== Example ==

version
x=linspace(0,2*pi,n=64);
Y=[sin(x);cos(x);tan(x);cot(x)]';
figure(); #clf; cla;
CO=gray(4);
set(gca,'colororder',CO);
plot(x,Y,";;");
ylim([-1,1]);

current_CO=get(gca,"colororder");
if (size(current_CO)==size(CO))
  if (current_CO==CO)
    printf("colororder worked.\n");
  else
    warning("wrong colororder.\n");
  endif
else
  warning("set colororder did not work");
endif



produces the output:


ColorOrderTest
ans = 4.2.1
warning: set colororder did not work
warning: called from
    ColorOrderTest at line 19 column 3


and of course a plot with default colours.

== Further Information ==
There was this bug [bug
#39291](https://savannah.gnu.org/bugs/?func=detailitem&item_id=39291) for an
older version and different OS, so it's probably a different thing.

where could I possibly begin to investigate why that is?

This is also happening in Ubuntu's build of Octave 4.0.3, so it is probably
unrelated to the change of the default colors.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 10 Mar 2017 06:48:29 PM UTC  Name: ColorOrderTest.m  Size: 384B  
By: akramer
test script, same as in submission
<http://savannah.gnu.org/bugs/download.php?file_id=39967>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50511>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]