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:55:01 -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)

Follow-up Comment #3, bug #54747 (project octave):

I see. Thank you.

Please see below:


figure
>> x = [linspace(0,3*pi,100) nan linspace(0,3*pi,100)];
>> y = [cos(x) + rand(1,numel(x))];
>> sz = 80;
>> c = linspace(1,10,length(x));
>> 
>> h = scatter(x,y,sz,c,'o','LineWidth',1.5);
>> cdat = get (h, 'cdata');
>> cdat (98:102)

ans =

    5.3650    5.4100    5.4550    5.5000    5.5450

>> diff (ans)

ans =

    0.0450    0.0450    0.0450    0.0450


    _______________________________________________________

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]