diff --git a/@gramm/geom_raster.m b/@gramm/geom_raster.m index 5b9631e..e31e90c 100644 --- a/@gramm/geom_raster.m +++ b/@gramm/geom_raster.m @@ -36,7 +36,7 @@ ally=[temp_y(:) temp_y(:)+0.9 NaN(numel(temp_x),1)]'; hndl=line(allx(:),ally(:),'color',draw_data.color,'lineWidth',draw_data.line_size); else - hndl=line(temp_x,temp_y,'LineStyle','none','Marker','o','MarkerEdgeColor','none','markerSize',draw_data.point_size,'MarkerFaceColor',draw_data.color); + hndl=line(temp_x(:),temp_y(:),'LineStyle','none','Marker','o','MarkerEdgeColor','none','markerSize',draw_data.point_size,'MarkerFaceColor',draw_data.color); end else