Daniel Ringler: Sankey Plots with Python

Learn how to create Sankey plots with Python using Plotly, and discover tips and tricks for customizing colors, adding notes, and more, in this informative talk by Daniel Ringler.

Key takeaways
  • Sankey plots are used to visualize energy flows and are named after Matthew sankey who used them in the late 19th century.
  • The speaker uses Plotly to create Sankey plots with Python.
  • The Sankey class from Plotly is used to create these plots.
  • The import statement is used to import the necessary libraries.
  • The speaker found that it was difficult to change the position of notes in the Sankey plot.
  • It’s possible to reorder nodes in a Sankey plot.
  • The speaker used a small method to add a thousand separator and get rid of scientific notation.
  • The flow values are used to determine the widths of the arrows in the Sankey plot.
  • The speaker found that it was not easy to change the color of the arrows.
  • The color map can be used to customize the colors of the Sankey plot.
  • The speaker used the data frame to create a reusable flow chart.
  • The flow chart can be customized to show different steps along the process.
  • The speaker found that it was not easy to get started with Sankey plots.
  • The documentation for Sankey plots was limited.
  • The speaker used the plot to compare different flows.
  • The Sankey plot can be used to visualize complex flows.
  • The speaker used the “notes” class to add additional information to the Sankey plot.
  • The Sankey plot can be used to visualize energy flows from different sources.
  • The speaker used Eurostat data to create a Sankey plot.
  • The speaker found that it was not easy to get the data into the correct format.
  • The speaker used the “add” method to add data from different years.
  • The Sankey plot can be used to visualize complex flows with multiple steps.
  • The speaker used Holo views to create a reusable flow chart.
  • The speaker found that Holo views was more interactive than Plotly.