Skip to content

add tiledlayout annotations when tiledlayout functionality is used #408

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

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