Datalore Help

Automatic plotting

Datalore supports automatic plotting for pandas dataframes. With this feature, you can quickly get a visualization of your data, customize it, and export the result as a code for your notebook .

Generate and customize your data visualization

  1. When your data is ready, switch to the Visualize tab from your output. You will get a line chart representing the data from the first two columns of your dataframe.

  2. (Optional) Switch to Bar to view the data as a histogram.

  3. Automatically plotted line chart

  4. Customize your visualization:
    • By default, the graph represents the data from the first two columns of your dataframe. To plot other data, click the input field for axis X or Y and select a column.

      Selecting a column for axis Y

    • To edit the graph title or axis labels, expand the Other plot options section and fill in the respective fields.

      Providing new labels

Export the code to the notebook

The Visualize tab is not shown in the published version. To save the customized graph and demonstrate it when the notebook is published, click the Export to code cell button in the upper-right corner of the Visualize tab.

The code that builds the graph will be added to your notebook in a new code cell.

Exported code with the graph in the output
    Last modified: 12 July 2021