Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Flatten figures of subplot for easy plotting #5053

Copy link
Copy link
Open
@Folarin14

Description

@Folarin14
Issue body actions

I just dabbled into plotly for some project and i noticed via the documentation and stackoverflow that plotly does not have an easy way to flatten figures for easy subplotting. You literally have to explicitly define which rows and column you want your trace to be. It would be great if plotly could have a similar feature to matplotlib where you could flatten a series of axes subplots into a list and just for loop through it. Example below for clarity:

fig, axs = plt.subplots(nrows=4,ncols=4)
axs = axs.flatten()
for ax in axs:
    ax.plot() # plot on each subplot from left to right for each row

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogbacklogfeaturesomething newsomething new

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.