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

Helper function to add caption-like annotations #58

Closed
chriddyp opened this issue Jun 11, 2015 · 2 comments
Closed

Helper function to add caption-like annotations #58

chriddyp opened this issue Jun 11, 2015 · 2 comments

Comments

@chriddyp
Copy link
Member

No description provided.

@chriddyp
Copy link
Member Author

function plotly_figure=add_caption(plotly_figure, caption)
    plotly_figure.layout.annotations{length(p.layout.annotations)+1} = struct(
        'text', 'test', 
        'xref', 'paper',
        'yref', 'paper',
        'xanchor', 'center',
        'yanchor', 'top',
        'x', 0.5, 'y', 0,
        'showarrow', false
    );

    plotly_figure.layout.margin.b = 1.5 * p.layout.margin.b;
end

@BRONSOLO
Copy link
Member

addressed in: #59

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

No branches or pull requests

2 participants