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

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

[Octave-bug-tracker] [bug #65431] crash after hgload certain data


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #65431] crash after hgload certain data
Date: Sun, 10 Mar 2024 22:25:26 -0400 (EDT)

Follow-up Comment #71, bug #65431 (group octave):

if we plan to keep this patch to patch for stable, the following simple fix
corrects the cdata call in bar to row vectors:


diff -r c4500208f280 scripts/plot/draw/private/__bar__.m
--- a/scripts/plot/draw/private/__bar__.m       Sat Mar 09 19:29:51 2024
+0100
+++ b/scripts/plot/draw/private/__bar__.m       Sun Mar 10 22:22:46 2024
-0400
@@ -283,10 +283,10 @@
 
       if (vertical)
         h = patch (hax, xb(:,:,i), yb(:,:,i),
-                   "cdata", i*ones (columns (xb),1), "FaceColor", "flat");
+                   "cdata", i*ones (1, columns (xb)), "FaceColor", "flat");
       else
         h = patch (hax, yb(:,:,i), xb(:,:,i),
-                   "cdata", i*ones (columns (yb),1), "FaceColor", "flat");
+                   "cdata", i*ones (1, columns (yb)), "FaceColor", "flat");
       endif
 
       if (! isempty (varargin))


(appears we've been using this general ambiguity for some time.  I was looking
through old archived matlab docs and i can't find something that doesn't list
the cdata and facevertexcdata properties and intended shapes as we see them
now. )


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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