Skip to content

shapes on subplots #2161

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

Merged
merged 4 commits into from
Feb 19, 2020
Merged

shapes on subplots #2161

merged 4 commits into from
Feb 19, 2020

Conversation

Mahdis-z
Copy link
Contributor

@Mahdis-z Mahdis-z commented Feb 4, 2020

No description provided.

@Mahdis-z Mahdis-z requested a review from emmanuelle February 4, 2020 18:56
@emmanuelle emmanuelle mentioned this pull request Feb 4, 2020
from plotly.subplots import make_subplots

# Create Subplots
fig = make_subplots(rows=2, cols=2, start_cell='bottom-left')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So why do we need to change the start_cell here? I would need an explanation, so probably the tutorial too ;-)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looked good to me also without changing the start_cell, so I'd suggest to limit the complexity here unless of course I am missing something.

@emmanuelle
Copy link
Contributor

Thank you @Mahdis-z ! Just a couple of suggestions and then we can merge :-).

@Mahdis-z
Copy link
Contributor Author

Mahdis-z commented Feb 5, 2020

Thank you @Mahdis-z ! Just a couple of suggestions and then we can merge :-).

Thanks for the thorough review @emmanuelle

@@ -638,6 +638,34 @@ fig.update_layout(
fig.show()
```

#### Adding Shapes to Subplots
Here we use the different axes (`x1`, `x2`) created by `make_subplots` as reference in order to draw shapes in figure subplots.
```python
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe you need a blank line before the python cell here, not sure (please check)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would try, not sure why CI fails

@emmanuelle
Copy link
Contributor

thank you 💃 !

@nicolaskruchten
Copy link
Contributor

The orca failure here should resolve itself soon when pytest upgrades, or if we downgrade pytest..

@emmanuelle
Copy link
Contributor

This one is good to go @Mahdis-z you can merge it (the orca failure has already been fixed in another merged commit).

@Mahdis-z Mahdis-z merged commit 096dd00 into doc-prod Feb 19, 2020
@Mahdis-z Mahdis-z deleted the py_shapes_sub_plots branch February 19, 2020 16:57
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.

3 participants