Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions plotly/plotlyfig.m
Original file line number Diff line number Diff line change
Expand Up @@ -671,9 +671,8 @@ function validate(obj)
updateData(obj,n);

try
if (strcmp(obj.data{n}.type, 'bar') && update_opac(length(ax)-n))
obj.data{1, n}.opacity = 0.9;
obj.data{1, n}.marker.color = 'rgb(0,113.985,188.955)';
if update_opac(length(ax)-n)
% obj.data{1, n}.opacity = 0.9;
end
catch
% TODO to the future
Expand Down
4 changes: 4 additions & 0 deletions plotly/plotlyfig_aux/core/updateData.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
updatePolarplot(obj, dataIndex);
elseif strcmpi(obj.PlotOptions.TreatAs, 'contour3')
updateContour3(obj, dataIndex);
elseif strcmpi(obj.PlotOptions.TreatAs, 'compass')
updateLineseries(obj, dataIndex);
elseif strcmpi(obj.PlotOptions.TreatAs, 'ezpolar')
updateLineseries(obj, dataIndex);
end

%-update plot based on plot call class-%
Expand Down
21 changes: 6 additions & 15 deletions plotly/plotlyfig_aux/handlegraphics/updateLineseries.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 +66,14 @@ function updateLineseries(obj,plotIndex)
%-------------------------------------------------------------------------%

%-if polar plot or not-%
ispolar = false;
x = plot_data.XData;
y = plot_data.YData;
treatas = obj.PlotOptions.TreatAs;
ispolar = strcmpi(treatas, 'compass') || strcmpi(treatas, 'ezpolar');

if length(x)==5 && length(y)==5 && x(2)==x(4) && y(2)==y(4)
ispolar = true;
end
%-------------------------------------------------------------------------%

%-if ezpolar or not-%
len = length(obj.State.Axis.Handle.Children);
if len > 1
for l = 1:len
if strcmpi(obj.State.Axis.Handle.Children(l).Type, 'Text')
ispolar = true;
end
end
end
%-getting data-%
x = plot_data.XData;
y = plot_data.YData;

%-------------------------------------------------------------------------%

Expand Down
2 changes: 2 additions & 0 deletions plotly/plotlyfig_aux/helpers/extractLineMarker.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
switch line_data.Marker
case '.'
marksymbol = 'circle';
marker.size = 0.4*line_data.MarkerSize;
case 'o'
marksymbol = 'circle';
marker.size = 0.4*line_data.MarkerSize;
case 'x'
marksymbol = 'x-thin-open';
case '+'
Expand Down
4 changes: 3 additions & 1 deletion plotly/plotlyfig_aux/helpers/extractPatchFace.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,16 @@
end

marker.color = ['rgb(' num2str(col(1)) ',' num2str(col(2)) ',' num2str(col(3)) ')'];

case 'auto'
marker.color = 'rgb(0,113.985,188.955)';

end
end

%-------------------------------------------------------------------------%

%-PATCH EDGE COLOR-%

if isnumeric(patch_data.EdgeColor)

col = 255*patch_data.EdgeColor;
Expand Down