Aufgrund einer Störung des s3 Storage, könnten in nächster Zeit folgende GitLab Funktionen nicht zur Verfügung stehen: LFS, Container Registry, Job Artifacs, Uploads (Wiki, Bilder, Projekt-Exporte). Wir bitten um Verständnis. Es wird mit Hochdruck an der Behebung des Problems gearbeitet. Weitere Informationen zur Störung des Object Storage finden Sie hier:

Aufgrund einer Wartung wird GitLab am 03.08. zwischen 8:00 und 9:00 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to maintenance, GitLab will be temporarily unavailable on 03.08. between 8:00 and 9:00 am.

Commit da81a742 authored by Markus Mueller-Trapet's avatar Markus Mueller-Trapet
Browse files

bugfix (first part) for scatter plots, data is exported at least, but line is still created in GLE

parent 2b11ed86
......@@ -286,8 +286,8 @@ try
% differentiate between plot types
% standard line plot
plotType = get(chdr{iGraph},'Type');
if any(strcmpi(plotType,'line')) && ~(any(strcmpi(plotType,'bar')) || any(strcmpi(plotType,'patch'))) % workaround for bar plots
files = [files gle_makeplot(fid,axesHandles(iGraph),chdr{iGraph}(strcmpi(plotType,'line')),PlotLegends{iGraph},DeltaX,DeltaY,iGraph,sArgs,'line')];
if any(strcmpi(plotType,'line') | strcmpi(plotType,'scatter')) && ~(any(strcmpi(plotType,'bar')) || any(strcmpi(plotType,'patch'))) % workaround for bar plots
files = [files gle_makeplot(fid,axesHandles(iGraph),chdr{iGraph}(strcmpi(plotType,'line') | strcmpi(plotType,'scatter')),PlotLegends{iGraph},DeltaX,DeltaY,iGraph,sArgs,'line')];
% bar graphs (toolbox bar plots use patches)
elseif any(strcmpi(plotType,'bar')) || any(strcmpi(plotType,'patch')) || (any(strcmpi(plotType,'hggroup')) && any(isprop(chdr{iGraph},'BarLayout'))) % rsc - bar plot are hggroup but have a BarLayout Property
......@@ -662,13 +662,22 @@ fprintf(fid,'\tylabels dist axisLabelDist\n');
%% here come the actual plots
if strcmpi(plot_type,'line') || strcmpi(plot_type,'errorbar')
% gather line-specific data
line_color = get(chdr,'Color');
marker = get(chdr,'marker');
% marker_size = get(chdr,'MarkerSize');
line_style = get(chdr,'LineStyle');
line_width = get(chdr,'LineWidth');
line_color = cell(numel(chdr),1);
line_style = cell(numel(chdr),1);
for iChdr = 1:numel(chdr)
if strcmpi(chdr(iChdr).Type,'scatter')
line_color{iChdr} = chdr(iChdr).CData;
line_style{iChdr} = 'o';
% gather line-specific data
line_color{iChdr} = get(chdr(iChdr),'Color');
line_style{iChdr} = get(chdr(iChdr),'LineStyle');
line_color = get(chdr,'FaceColor');
if ~iscell(line_color)
line_color = {line_color};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment