Skip to content
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

Fix issues and awesome improvements in surf functionality #375

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
6 changes: 5 additions & 1 deletion plotly/plotlyfig_aux/core/updateData.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
elseif strcmpi(obj.PlotOptions.TreatAs, 'coneplot')
updateConeplot(obj, dataIndex);
elseif strcmpi(obj.PlotOptions.TreatAs, 'bar3')
updateBar3(obj, dataIndex);
updateBar3(obj, dataIndex);
elseif strcmpi(obj.PlotOptions.TreatAs, 'bar3h')
updateBar3h(obj, dataIndex);
elseif strcmpi(obj.PlotOptions.TreatAs, 'surf')
updateSurf(obj, dataIndex);

% this one will be revomed
elseif strcmpi(obj.PlotOptions.TreatAs, 'streamtube')
Expand Down
12 changes: 4 additions & 8 deletions plotly/plotlyfig_aux/handlegraphics/updateBar3.m
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
switch bar_data.FaceColor

case 'none'
marker.color = 'rgba(0,0,0,0)';
col = 'rgba(0,0,0,0)';

case {'flat','interp'}

Expand Down Expand Up @@ -207,12 +207,8 @@
else

%-define as default-%
xey = xar; if xey>0 xfac = 5; else xfac = 0.5*length(values); end
yey = yar; if yey>0 yfac = 0.1; else yfac = -0.1; end
if zar>0 zfac = -0.05; else zfac = 0.1; end

scene.camera.eye.x = xey + 7;
scene.camera.eye.y = yey - 2;
scene.camera.eye.x = xar + 7;
scene.camera.eye.y = yar - 2;
scene.camera.eye.z = zar + 0.5;
end

Expand All @@ -232,7 +228,7 @@
scene.zaxis.tickvals = axis_data.ZTick;
scene.zaxis.ticktext = axis_data.ZTickLabel;

scene.yaxis.zeroline = false;
scene.xaxis.zeroline = false;
scene.yaxis.zeroline = false;
scene.zaxis.zeroline = false;

Expand Down
Loading