Skip to content

debugging title issue, 2d plot tick, camera position 3d #358

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
15 changes: 12 additions & 3 deletions plotly/plotlyfig.m
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,15 @@ function validate(obj)
handleFileName(obj);

% handle title (for feed)

% if only 1 plot
%obj.layout.title=obj.PlotOptions.FileName;
obj.layout.title=obj.State.Axis.Handle.Title.String;
obj.layout.titlefont.color='rgb(38.25,38.25,38.25)';%obj.State.Axis.Handle.Title.Color;
%obj.layout.title.size=25;%obj.State.Axis.Handle.Title.size;
%obj.layout.title.family='Arial, sans-serif';%obj.State.Axis.Handle.Title.FontName


if obj.PlotOptions.CleanFeedTitle
try
cleanFeedTitle(obj);
Expand Down Expand Up @@ -482,7 +491,7 @@ function validate(obj)
web(response.url, '-browser');
end
else
obj.url = plotlyoffline(obj);
obj.url = plotlyoffline(obj); %%
if obj.PlotOptions.OpenURL
web(obj.url, '-browser');
end
Expand Down Expand Up @@ -663,7 +672,7 @@ function validate(obj)
end
catch
% TODO to the future
% disp('catch at line 664 in plotlyfig.m file')
% disp('catch at line 664 in plotlyfig_correction.m file')
end

end
Expand All @@ -678,7 +687,7 @@ function validate(obj)
end
catch
% TODO to the future
% disp('catch at line 679 in plotlyfig.m file')
% disp('catch at line 679 in plotlyfig_correction.m file')
end
end

Expand Down
2 changes: 1 addition & 1 deletion plotly/plotlyfig_aux/core/updateAxis.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%----UPDATE AXIS DATA/LAYOUT----%
%----UPDATE AXIS DATA/layout----%

function obj = updateAxis(obj,axIndex)

Expand Down
2 changes: 1 addition & 1 deletion plotly/plotlyfig_aux/core/updateFigure.m
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
obj.layout.margin.l = 0;
obj.layout.margin.r = 0;
obj.layout.margin.b = 0;
obj.layout.margin.t = 0;
obj.layout.margin.t = 100;

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

Expand Down
15 changes: 15 additions & 0 deletions plotly/plotlyfig_aux/helpers/extractAxisData.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,24 @@
axis.tickcolor = axiscol;
%-axis tickfont-%
axis.tickfont.color = axiscol;
% %-axis tickmode-%
axis.tickmode='array';

% %-axis tickvals-%
if axisName=='X'
axis.tickvals=obj.State.Axis.Handle.XTick;%axis.tickvals=[1,3,5];
elseif axisName=='Y'
axis.tickvals=obj.State.Axis.Handle.YTick;
elseif axisName=='Z'
axis.tickvals=obj.State.Axis.Handle.ZTick;
end
% %axis ticktext-%
%axis.ticktext=['one','three','five','sdf','efr'];

%-axis grid color-%
axis.gridcolor = axiscol;


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

if strcmp(axis_data.XGrid, 'on') || strcmp(axis_data.XMinorGrid, 'on')
Expand Down