LabPlot/GettingStarted/YourFirstDataImportVisualisation: Difference between revisions

From KDE UserBase Wiki
No edit summary
Line 4: Line 4:


After the start of LabPlot, create a new project by selecting "File/New" from the main menu or alternatively by clicking on the corresponding icon in the toolbar:
After the start of LabPlot, create a new project by selecting "File/New" from the main menu or alternatively by clicking on the corresponding icon in the toolbar:
[[File:LabPlot Getting Started New Project.png|500px|thumb|center]]


After the new project was created, you'll see [[Special:myLanguage/LabPlot/Interface/ProjectExplorer|Project Explorer]] showing the structure of the project as well as [[Special:myLanguage/LabPlot/Interface/PropertiesExplorer|Properties Explorer]] showing the properties of the currently selected object in the project explorer. The project is empty yet and we're going to add some more content to it now.
After the new project was created, you'll see [[Special:myLanguage/LabPlot/Interface/ProjectExplorer|Project Explorer]] showing the structure of the project as well as [[Special:myLanguage/LabPlot/Interface/PropertiesExplorer|Properties Explorer]] showing the properties of the currently selected object in the project explorer. The project is empty yet and we're going to add some more content to it now.


== Create a new spreadsheet ==
== Create a new spreadsheet ==
The data is organized and stored in LabPlot in [[Special:myLanguage/LabPlot/DataContainers|Data Containers]]. For the data we want to import and visualize in this example we're dealing with the data organized in columns (one variable per column) in the original source file. [[Special:myLanguage/LabPlot/DataContainers/Spreadsheet|Spreadsheet]] is the appropriate data container to import such data into. To create a new spreadsheet, select from the context menu in the project explorer "Add New/Spreadsheet":
The data is organized and stored in LabPlot in [[Special:myLanguage/LabPlot/DataContainers|Data Containers]]. For the data we want to import and visualize in this example we're dealing with the data organized in columns (one variable per column) in the original source file. [[Special:myLanguage/LabPlot/DataContainers/Spreadsheet|Spreadsheet]] is the appropriate data container to import such data into. To create a new spreadsheet, select from the context menu in the project explorer "Add New/Spreadsheet":
[[File:LabPlot Getting Started New Spreadsheet.png|500px|thumb|center]]


You'll get a new spreadsheet created with its default settings:
You'll get a new spreadsheet created with its default settings:
 
[[File:LabPlot Getting Started New Spreadsheet Created.png|500px|thumb|center]]
We're prepared now to import the data into this new spreadsheet.
We're prepared now to import the data into this new spreadsheet.


Line 18: Line 19:


To import the data from an external file select "Import from File" in the main menu:
To import the data from an external file select "Import from File" in the main menu:
[[File:LabPlot Getting Started Import From File.png|500px|thumb|center]]


In the "Import File" Dialog, specify the location of the file to be imported and the settings for the import like the separating character, etc.:
In the "Import File" Dialog, specify the location of the file to be imported and the settings for the import like the separating character, etc.:
[[File:LabPlot Getting Started Import Dialog.png|500px|thumb|center]]


Navigate to the "Preview" tab in this dialog to check whether the structure of the data will be properly read with the current settings:
Navigate to the "Preview" tab in this dialog to check whether the structure of the data will be properly read with the current settings:
[[File:LabPlot Getting Started Import Dialog Preview.png|500px|thumb|center]]


Click on the Ok-button to import the data into the spreadsheet. After the import you'll see your data in the spreadsheet:
Click on the Ok-button to import the data into the spreadsheet. After the import you'll see your data in the spreadsheet:
Line 29: Line 33:


The imported data contains signals from multiple sensors that were placed on a multicopter. We want to visualize the acceleration in the x-direction. For this we select the column containing this data and select "Plot Data/xy-curve" from the context menu of this column:
The imported data contains signals from multiple sensors that were placed on a multicopter. We want to visualize the acceleration in the x-direction. For this we select the column containing this data and select "Plot Data/xy-curve" from the context menu of this column:
 
[[File:LabPlot Getting Started Plot Data.png|500px|thumb|center]]
The "Plot Data" Dialog will appear:
The "Plot Data" Dialog will appear:
[[File:LabPlot Getting Started Plot Data Dialog.png|500px|thumb|center]]


LabPlot automatically recognized the column "Time" that will be used for x. We keep all the other setting as shown on this screenshot to visualize the data in a new plot on a new [[Special:myLanguage/LabPlot/Worksheet|Worksheet]]:
LabPlot automatically recognized the column "Time" that will be used for x. We keep all the other setting as shown on this screenshot to visualize the data in a new plot on a new [[Special:myLanguage/LabPlot/Worksheet|Worksheet]]:
[[File:LabPlot Getting Started Worksheet.png|500px|thumb|center]]


Once the plot is created you can modify its appearance by clicking on the plot or one of its children and modifying the properties in the properties explorer.
Once the plot is created you can modify its appearance by clicking on the plot or one of its children and modifying the properties in the properties explorer.
Line 39: Line 45:


To export the produced plot, click on the Export button and specify the location of the file and its format:
To export the produced plot, click on the Export button and specify the location of the file and its format:
[[File:LabPlot Getting Started Export Dialog.png|500px|thumb|center]]

Revision as of 13:06, 1 May 2021

Import of the data and its visualization can be achieved with a couple of mouse clicks in LabPlot:

Create a new project

After the start of LabPlot, create a new project by selecting "File/New" from the main menu or alternatively by clicking on the corresponding icon in the toolbar:

After the new project was created, you'll see Project Explorer showing the structure of the project as well as Properties Explorer showing the properties of the currently selected object in the project explorer. The project is empty yet and we're going to add some more content to it now.

Create a new spreadsheet

The data is organized and stored in LabPlot in Data Containers. For the data we want to import and visualize in this example we're dealing with the data organized in columns (one variable per column) in the original source file. Spreadsheet is the appropriate data container to import such data into. To create a new spreadsheet, select from the context menu in the project explorer "Add New/Spreadsheet":

You'll get a new spreadsheet created with its default settings:

We're prepared now to import the data into this new spreadsheet.

Import data

To import the data from an external file select "Import from File" in the main menu:

In the "Import File" Dialog, specify the location of the file to be imported and the settings for the import like the separating character, etc.:

Navigate to the "Preview" tab in this dialog to check whether the structure of the data will be properly read with the current settings:

Click on the Ok-button to import the data into the spreadsheet. After the import you'll see your data in the spreadsheet:

Visualize data

The imported data contains signals from multiple sensors that were placed on a multicopter. We want to visualize the acceleration in the x-direction. For this we select the column containing this data and select "Plot Data/xy-curve" from the context menu of this column:

The "Plot Data" Dialog will appear:

LabPlot automatically recognized the column "Time" that will be used for x. We keep all the other setting as shown on this screenshot to visualize the data in a new plot on a new Worksheet:

Once the plot is created you can modify its appearance by clicking on the plot or one of its children and modifying the properties in the properties explorer.

Export results

To export the produced plot, click on the Export button and specify the location of the file and its format: