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

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

[Octave-bug-tracker] [bug #48109] Trisurf fails to colour triangles corr


From: anonymous
Subject: [Octave-bug-tracker] [bug #48109] Trisurf fails to colour triangles correctly.
Date: Mon, 20 Nov 2017 01:59:56 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #5, bug #48109 (project octave):


[x,y] = meshgrid(1:15,1:15);
tri = delaunay(x,y);
z = peaks(15);
trisurf(tri,x,y,z, 1:10)
colormap ('jet')
Warning: Error creating or updating Patch
 Error in value of property  FaceVertexCData
 Number of colors must equal number of vertices or faces 


And empty 3d figure is shown


>> [x,y] = meshgrid (1:15,1:15);
tri = delaunay (x,y);
z = peaks (15);
h = trisurf (tri,x,y,z);
size (tri)
size (get (h, 'cdata'))
size (get (h, 'facevertexcdata'))

ans =

   392     3


ans =

     3   392


ans =

   225     1




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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