Skip to content

Plot with just axes not working #387

Closed
@danton267

Description

@danton267

Reference: https://uk.mathworks.com/help/matlab/ref/axes.html

This results in an error

clf reset;

figure
ax1 = axes('Position',[0.1 0.1 0.7 0.7]);
ax2 = axes('Position',[0.65 0.65 0.28 0.28]);

f = fig2plotly(gcf, 'offline', false)
f.url
figure
ax1 = axes('Position',[0.1 0.1 .6 .6],'Box','on');
ax2 = axes('Position',[.35 .35 .6 .6],'Box','on');

This does not create the axis that is supposed to appear behind the first plot:

figure
ax1 = axes('Position',[0.1 0.1 .6 .6],'Box','on');
ax2 = axes('Position',[.35 .35 .6 .6],'Box','on');
axes(ax1)
x = linspace(0,10);
y = sin(x);
plot(x,y)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions