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

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

[Octave-bug-tracker] [bug #54747] Scatter plot error: number of colors i


From: avlas
Subject: [Octave-bug-tracker] [bug #54747] Scatter plot error: number of colors in C must match number of points in X
Date: Thu, 27 Sep 2018 16:27:29 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.11.1 Chrome/65.0.3325.230 Safari/537.36 Konqueror (WebEnginePart)

URL:
  <https://savannah.gnu.org/bugs/?54747>

                 Summary: Scatter plot error: number of colors in C must match
number of points in X
                 Project: GNU Octave
            Submitted by: kupiqu
            Submitted on: Thu 27 Sep 2018 08:27:27 PM UTC
                Category: Octave Function
                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: 4.4.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:


Even when the size of x and c are the same, I get this error. Please check the
following example:


figure
x = [linspace(0,3*pi,100) nan linspace(0,3*pi,100)];
y = [cos(x) + rand(1,numel(x))];
z = [sin(x) + rand(1,numel(x))];

sz = 80;
c = linspace(1,10,length(x));

scatter(x,y,sz,c,'o','LineWidth',1.5)

error: scatter: number of colors in C must match number of points in X
error: called from
    __scatter__ at line 103 column 5
    scatter at line 86 column 10





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?54747>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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