Building a graph from spreadsheet data with LabPlot

In this chapter you will find explanations on how to build a simple plot from spreadsheet data.

LabPlot window after the first start
  1. Click on the New button or press Ctrl+N on the keyboard.

    New LabPlot project
  2. Click on the Project item on the Project Explorer panel with the right mouse button and choose Add newSpreadsheet or press Ctrl+= on the keyboard.

    Adding new LabPlot spreadsheet
  3. Click on the header of the first column of the spreadsheet with the left mouse button then click on any of its cells with right mouse button and choose SelectionFill Selection withRow Numbers.

    Filling the first column of the spreadsheet

    Select Automatic (g) from the Format drop down box on the Column properties right dock to enhance data presentation for the first column.

  4. Click on the header of the second column of the spreadsheet with the right mouse button and choose Generate DataRandom Values.

    Filling the second column of the spreadsheet
  5. Click on the Project item on the Project Explorer panel with the right mouse button and choose Add newWorksheet or press Alt+X on the keyboard.

    Adding new LabPlot worksheet
  6. Click on the Worksheet item on the Project Explorer panel with the right mouse button and choose Add newxy-plotbox plot, four axes.

    Adding axes to the plot
  7. Click on the xy-plot item on the Project Explorer panel with the right mouse button and choose Add newxy-curve.

    Adding new curve
  8. Use the xy-curve properties pane on the right to select ProjectSpreadsheet1 in the x-data field (just click on the item and press Enter). Use the same procedure to select 2 for the y-data field. The results will be shown on the worksheet immediately.

    The plot for the unsorted data
  9. Click on the Spreadsheet item on the Project Explorer panel with the left mouse button then click on the second column header with the right mouse button and choose SortAscending.

    Sorting the second column of the spreadsheet
  10. Click on the Worksheet item on the Project Explorer panel with the left mouse button to see the results.

    The plot for the sorted data