changeset 19318:f96495e88a70 stable

Allow setting horizontal vector of "ydata" in bar plots (bug #43468). * __bar__.m (update_data): Check for vector of ydata and always transform to column vector.
author Rik <rik@octave.org>
date Mon, 27 Oct 2014 09:30:46 -0700
parents eabfde4b6c56
children 0e077a29854f d60b44acfff7
files scripts/plot/draw/private/__bar__.m
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/draw/private/__bar__.m	Wed Oct 15 10:48:25 2014 -0400
+++ b/scripts/plot/draw/private/__bar__.m	Mon Oct 27 09:30:46 2014 -0700
@@ -437,6 +437,8 @@
       ydat = get (hlist, "ydata");
       if (iscell (ydat))
         y = cell2mat (ydat.');
+      elseif (isvector (ydat))
+        y = ydat(:);
       else
         y = ydat;
       endif