Skip to content

tang0614/Introduction-to-plotly.express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction-to-plotly.express

covers line chart, scatter plot, box plot, histogram, bar chart and 3D plot

INTRODUCTION

  • In this kernel, we will learn how to use plotly.express and to compare it with plotly.graph_objs library. We can see that most graph can be done with express library with much simipler code.

    1. Plotly library: plotly.py is an interactive, open-source, and JavaScript-based graphing library for Python. Built on top of plotly.js, plotly.py is a high-level, declarative charting library that includes over 30 chart types, including scientific charts, 3D graphs, statistical charts, SVG maps, financial charts, and more.The ultimate responsibility of plotly.py is to produce Python dictionaries that can be serialized into a JSON data structure that represents a valid figure

    2. What is plotly.express and plotly.graph_objs?

      1. plotly.graph_objs provides a hierarchy of classes called "graph objects" that may be used to construct figures.
      2. Plotly Express is a terse, consistent, high-level wrapper around plotly.graph_objects for rapid data exploration and figure generation. Most plots are made with just one function call that accepts a tidy Pandas data frame, and a simple description of the plot you want to make.

Content:

  1. Loading Data and Explanation of Features
  2. Line Charts
    1. Use plotly.graph_objs
      1. Draw single line
      2. Style line
      3. Draw multiple lines
    2. Use plotly.express
      1. Draw single line
      2. Style line
      3. Draw multiple lines
  3. Scatter Charts
    1. Use plotly.graph_objs draw scatter and line plot
    2. Use plotly.express
      1. Scatter plot with color
      2. Scatter plot with facet
      3. Scatter Plot with categorical size and hover
      4. Scatter plot matrix
  4. Bar Charts
  5. Histogram
  6. Box Plot
  7. Heatmap
  8. 3D Plot

About

covers line chart, scatter plot, box plot, histogram, bar chart and 3D plot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published