Skip to content

Conversation

gilbertogalvis
Copy link
Contributor

Previous matlab_plotly code did not take into account the main title when the tiledlayout functionality is used.

This PR have made the appropriate adjustments in the code to take this into account.

I share a screenshot with the result below.

t = tiledlayout(2,2);
title(t,"Trigonometric Functions")
x = linspace(0,30);

nexttile
plot(x,sin(x))
title("Sine")

nexttile
plot(x,cos(x))
title("Cosine")

nexttile
plot(x,tan(x))
title("Tangent")

nexttile
plot(x,sec(x))
title("Secant")

fig2plotly(gcf, 'offline', 1);

Screen Shot 2021-10-12 at 5 27 26 PM

@gilbertogalvis gilbertogalvis merged commit 274e18d into master Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants