Flashcards: Python Data Import and Plotting — 36 cartões

Todos os cartões

1Pergunta

What is the basis of Python's simple syntax?

Resposta

Indentation rather than symbols.

2Pergunta

Since when has Python been developed?

Resposta

Since 1989.

3Pergunta

How can Python be used online?

Resposta

With the Python laboratory.

4Pergunta

Name two Python distributions mentioned.

Resposta

E-dypthon and Anaconda.

5Pergunta

Which two Python applications does this course focus on?

Resposta

Importing data and representing data graphically.

6Pergunta

How is a data table organized?

Resposta

Into rows and columns.

7Pergunta

How many columns does the course data table commonly contain?

Resposta

Two columns.

8Pergunta

What separators can a data file use for decimal values?

Resposta

A comma or a point.

9Pergunta

What must be identified before importing a data file?

Resposta

The separator format between integer and decimal parts.

10Pergunta

What lines must be identified before importing a file?

Resposta

The number of lines to ignore, including headings or units.

11Pergunta

What columns must be identified before importing a file?

Resposta

The columns to import.

12Pergunta

What is the name of the example data file?

Resposta

donnees.txt.

13Pergunta

How are measurements arranged in the example data file?

Resposta

In columns such as t, x, and y with units on a separate line.

14Pergunta

What does numpy.loadtxt() do?

Resposta

It loads numerical data from a text file into a NumPy array.

15Pergunta

What does the dtype parameter specify in numpy.loadtxt()?

Resposta

The data type for the imported values.

16Pergunta

What is the role of the delimiter parameter in numpy.loadtxt()?

Resposta

It defines the character separating columns in the data file.

17Pergunta

What does the skiprows parameter control in numpy.loadtxt()?

Resposta

The number of lines to skip at the start of the file.

18Pergunta

What does the usecols parameter do in numpy.loadtxt()?

Resposta

It selects which columns to import from the file.

19Pergunta

What does the comments parameter identify in numpy.loadtxt()?

Resposta

Characters that mark the start of comments in the file.

20Pergunta

What is the purpose of the converters parameter in numpy.loadtxt()?

Resposta

To convert character strings into numbers during import.

21Pergunta

What happens when unpack=True in numpy.loadtxt()?

Resposta

Data is returned in separate columns as individual arrays.

22Pergunta

What is matplotlib.pyplot in Python?

Resposta

A library module for graphical data representation including point clouds.

23Pergunta

What are the main steps in a basic graphing program using matplotlib?

Resposta

Import NumPy and matplotlib.pyplot, load data, plot, label, and display.

24Pergunta

Which function sets the graph axes in matplotlib?

Resposta

The axis() function.

25Pergunta

Which function adds a graph title in matplotlib?

Resposta

The title() function.

26Pergunta

Which functions label the horizontal and vertical axes in matplotlib?

Resposta

xlabel() labels horizontal and ylabel() labels vertical axes.

27Pergunta

What does the legend() function do in matplotlib?

Resposta

It displays the graph legend.

28Pergunta

What is the purpose of the show() function in matplotlib?

Resposta

It displays the graphs on screen.

29Pergunta

What does plt.plot(x, y, 'o-', color="red", marker="o", linewidth=1, label="vitesse") create?

Resposta

A red point-and-line plot labeled vitesse.

30Pergunta

What does the plot() function do with x and y lists?

Resposta

It places points or connects their abscissas and ordinates.

31Pergunta

Which parameters customize the plot() function's display?

Resposta

Color, label, and marker parameters.

32Pergunta

What does the quiver() function draw?

Resposta

Vectors using origin coordinates and vector components.

33Pergunta

Which inputs does quiver() use to draw vectors?

Resposta

Origin coordinates x and y, vector components, and display parameters.

34Pergunta

What velocity vectors are used in the example to draw three vectors?

Resposta

vx=[0.007, 0.013, 0.019] and vy=[0.002, 0.002, -0.001].

35Pergunta

What origin coordinates are used in the example for drawing vectors?

Resposta

ax=[0.0, 0.02, 0.04] and ay=[1.503, 1.507, 1.505].

36Pergunta

What does the completed matplotlib graph represent?

Resposta

The trajectory of a falling ball with velocity vectors.

Teste-se com o quiz

Teste seu conhecimento com 14 perguntas sobre Python Data Import and Plotting.

1. What structural feature does Python use to define blocks of code?

2. Which pair of applications is emphasized for Python in physics and chemistry?

Faça o quiz →

Leia a ficha de revisão

Revise o curso completo na ficha de revisão para Python Data Import and Plotting.

Veja a ficha de revisão →

Similar courses

Crie seus próprios flashcards

Importe seu curso e a IA gera flashcards em 30 segundos.

Gerador de flashcards