Skip to content

sankey nodes position - #189

Merged
Mahdis-z merged 2 commits into
masterfrom
sankey_node_position
Nov 19, 2019
Merged

Mahdis-z merged 2 commits into
masterfrom
sankey_node_position

Conversation

@Mahdis-z

@Mahdis-z Mahdis-z commented Nov 11, 2019 •

Copy link
Copy Markdown
Contributor

Comment thread python/sankey-diagram.md Outdated

### Define Node Position

The following axample sets [node.x](https://plot.ly/python/reference/#sankey-node-x) and [node.y](https://plot.ly/python/reference/#sankey-node-y) to place nodes in the specified locations, except in the [snap arrangement](https://plot.ly/python/reference/#sankey-arrangement) to avoid overlapping of the nodes, therefore, an automatic snapping of elements will be set to define the padding between nodes via [nodepad](https://plot.ly/python/reference/#sankey-node-pad). The other possible arrangements are:<font color='blue'> 1)</font> perpendicular <font color='blue'>2)</font> freeform <font color='blue'>3)</font> fixed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

typo: example

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what is the default value of arrangement?

@antoinerg antoinerg Nov 15, 2019 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thanks @antoinerg !

Comment thread python/sankey-diagram.md Outdated
"label": ["A", "B", "C", "D", "E", "F"],
"x": [0.2, 0.1, 0.5, 0.7, 0.3, 0.5],
"y": [0.7, 0.5, 0.2, 0.4, 0.2, 0.3],
'pad':10},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Add comment before this line "pad is given in number of pixels"

@emmanuelle

Copy link
Copy Markdown
Contributor

💃 thanks!

@Mahdis-z
Mahdis-z merged commit 5f6327b into master Nov 19, 2019
@Mahdis-z
Mahdis-z deleted the sankey_node_position branch November 19, 2019 20:01
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.

sankey diagram default node positions

3 participants