What is the basis of Python's simple syntax?
Indentation rather than symbols.
Since when has Python been developed?
Since 1989.
How can Python be used online?
With the Python laboratory.
Name two Python distributions mentioned.
E-dypthon and Anaconda.
Which two Python applications does this course focus on?
Importing data and representing data graphically.
How is a data table organized?
Into rows and columns.
How many columns does the course data table commonly contain?
Two columns.
What separators can a data file use for decimal values?
A comma or a point.
What must be identified before importing a data file?
The separator format between integer and decimal parts.
What lines must be identified before importing a file?
The number of lines to ignore, including headings or units.
What columns must be identified before importing a file?
The columns to import.
What is the name of the example data file?
donnees.txt.
How are measurements arranged in the example data file?
In columns such as t, x, and y with units on a separate line.
What does numpy.loadtxt() do?
It loads numerical data from a text file into a NumPy array.
What does the dtype parameter specify in numpy.loadtxt()?
The data type for the imported values.
What is the role of the delimiter parameter in numpy.loadtxt()?
It defines the character separating columns in the data file.
What does the skiprows parameter control in numpy.loadtxt()?
The number of lines to skip at the start of the file.
What does the usecols parameter do in numpy.loadtxt()?
It selects which columns to import from the file.
What does the comments parameter identify in numpy.loadtxt()?
Characters that mark the start of comments in the file.
What is the purpose of the converters parameter in numpy.loadtxt()?
To convert character strings into numbers during import.
What happens when unpack=True in numpy.loadtxt()?
Data is returned in separate columns as individual arrays.
What is matplotlib.pyplot in Python?
A library module for graphical data representation including point clouds.
What are the main steps in a basic graphing program using matplotlib?
Import NumPy and matplotlib.pyplot, load data, plot, label, and display.
Which function sets the graph axes in matplotlib?
The axis() function.
Which function adds a graph title in matplotlib?
The title() function.
Which functions label the horizontal and vertical axes in matplotlib?
xlabel() labels horizontal and ylabel() labels vertical axes.
What does the legend() function do in matplotlib?
It displays the graph legend.
What is the purpose of the show() function in matplotlib?
It displays the graphs on screen.
What does plt.plot(x, y, 'o-', color="red", marker="o", linewidth=1, label="vitesse") create?
A red point-and-line plot labeled vitesse.
What does the plot() function do with x and y lists?
It places points or connects their abscissas and ordinates.
Which parameters customize the plot() function's display?
Color, label, and marker parameters.
What does the quiver() function draw?
Vectors using origin coordinates and vector components.
Which inputs does quiver() use to draw vectors?
Origin coordinates x and y, vector components, and display parameters.
What velocity vectors are used in the example to draw three vectors?
vx=[0.007, 0.013, 0.019] and vy=[0.002, 0.002, -0.001].
What origin coordinates are used in the example for drawing vectors?
ax=[0.0, 0.02, 0.04] and ay=[1.503, 1.507, 1.505].
What does the completed matplotlib graph represent?
The trajectory of a falling ball with velocity vectors.
Metti alla prova le tue conoscenze con 14 domande su 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?
Ripassa il corso completo nella scheda di revisione per Python Data Import and Plotting.
Vedi la scheda di revisione →Importa il tuo corso e l'AI genera flashcard in 30 secondi.
Generatore di flashcard