Skip to content

Refactoring of axes tutorial #2068

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
Jan 15, 2020
Merged

Refactoring of axes tutorial #2068

merged 4 commits into from
Jan 15, 2020

Conversation

emmanuelle
Copy link
Contributor

  • removed calls to go.Layout or go.layout.XAxis
  • quite a lot of shuffling existing examples to have a more consistent structure: first types of axes, then axis properties (ticks, then lines, then titles, then range and domain)
  • links to other kinds of axis at the top
  • added example with constrain='domain' and another one setting domain.

layout=go.Layout(
xaxis=dict(showgrid=False),
yaxis=dict(showgrid=False),
fig = go.Figure(data=[
Copy link
Contributor

Choose a reason for hiding this comment

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

could we put a PX example right above this one plz?

@@ -35,119 +34,141 @@ jupyter:
thumbnail: thumbnail/axes.png
---

This tutorial explain how to set the properties of Cartesian axes, namely [`go.layout.XAxis`](/python/reference/#layout-xaxis) and [`go.layout.YAxis`](python/reference/#layout-xaxis). Other kinds of axes are described in other tutorials:
Copy link
Contributor

Choose a reason for hiding this comment

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

nice, this top section is really good!


fig.show()
```

#### Tick Placement, Color, and Style

##### Set number of tick marks
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe add "(and grid lines)" to reinforce that these are locked together?

@nicolaskruchten
Copy link
Contributor

This is great! OK just two comments, the ones that are not "resolved" after all ;)

@emmanuelle
Copy link
Contributor Author

I also added an example with log and fixed range.

@nicolaskruchten
Copy link
Contributor

💃 ... big upgrade, thanks!

@emmanuelle emmanuelle changed the base branch from master to doc-prod January 15, 2020 16:55
@emmanuelle emmanuelle changed the base branch from doc-prod to master January 15, 2020 16:56
@emmanuelle
Copy link
Contributor Author

Hum I should have branched from doc-prod but I forgot... I guess it does not matter much since we're releasing in a few days?

@nicolaskruchten
Copy link
Contributor

nicolaskruchten commented Jan 15, 2020 via email

@emmanuelle emmanuelle merged commit 1ea0b0d into master Jan 15, 2020
@nicolaskruchten nicolaskruchten deleted the doc-axes branch January 19, 2020 19:46
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