Principais perguntas e respostas de entrevista e testes online
Plataforma educacional para preparacao de entrevistas, testes online, tutoriais e pratica ao vivo

Desenvolva habilidades com trilhas de aprendizado focadas, simulados e conteudo pronto para entrevistas.

WithoutBook reune perguntas de entrevista por assunto, testes praticos online, tutoriais e guias comparativos em um unico espaco de aprendizado responsivo.

Preparar entrevista

Simulados

Definir como pagina inicial

Adicionar esta pagina aos favoritos

Assinar endereco de e-mail
Inicio / Assuntos de entrevista / Python Matplotlib
Entrevistas simuladas LIVE da WithoutBook Python Matplotlib Assuntos de entrevista relacionados: 13

Interview Questions and Answers

Conheca as principais perguntas e respostas de entrevista de Python Matplotlib para iniciantes e candidatos experientes e prepare-se para entrevistas de emprego.

Total de perguntas: 30 Interview Questions and Answers

A melhor entrevista simulada ao vivo para assistir antes de uma entrevista

Conheca as principais perguntas e respostas de entrevista de Python Matplotlib para iniciantes e candidatos experientes e prepare-se para entrevistas de emprego.

Interview Questions and Answers

Pesquise uma pergunta para ver a resposta.

Perguntas e respostas de nivel intermediario / de 1 a 5 anos de experiencia

Pergunta 1

Explain the difference between `plt.show()` and `plt.savefig()` in Matplotlib.

`plt.show()` displays the plot interactively, while `plt.savefig()` saves the current figure to a file without displaying it.

Example:

plt.plot([1, 2, 3, 4], [10, 20, 25, 30])
plt.savefig('plot.png')
Salvar para revisao

Salvar para revisao

Adicione este item aos favoritos, marque-o como dificil ou coloque-o em um conjunto de revisao.

Abrir minha biblioteca de aprendizado
Isto e util?
Adicionar comentario Ver comentarios
Pergunta 2

Explain the difference between `plt.plot()` and `plt.scatter()`.

`plt.plot()` connects data points with lines, while `plt.scatter()` shows individual data points without connecting them.

Example:

plt.plot([1, 2, 3, 4], [10, 20, 25, 30])
plt.scatter([1, 2, 3, 4], [10, 20, 25, 30])
plt.show()
Salvar para revisao

Salvar para revisao

Adicione este item aos favoritos, marque-o como dificil ou coloque-o em um conjunto de revisao.

Abrir minha biblioteca de aprendizado
Isto e util?
Adicionar comentario Ver comentarios
Pergunta 3

What is the purpose of `plt.legend()` in Matplotlib?

`plt.legend()` is used to add a legend to the plot, providing information about the plotted data series.

Example:

plt.plot([1, 2, 3, 4], [10, 20, 25, 30], label='Line 1')
plt.legend()
plt.show()
Salvar para revisao

Salvar para revisao

Adicione este item aos favoritos, marque-o como dificil ou coloque-o em um conjunto de revisao.

Abrir minha biblioteca de aprendizado
Isto e util?
Adicionar comentario Ver comentarios
Pergunta 4

What is a subplot in Matplotlib?

A subplot is a way to organize multiple plots within a single figure. It is created using `plt.subplot()`.

Example:

plt.subplot(2, 1, 1)
plt.plot([1, 2, 3, 4], [10, 20, 25, 30])
plt.subplot(2, 1, 2)
plt.scatter([1, 2, 3, 4], [10, 20, 25, 30])
plt.show()
Salvar para revisao

Salvar para revisao

Adicione este item aos favoritos, marque-o como dificil ou coloque-o em um conjunto de revisao.

Abrir minha biblioteca de aprendizado
Isto e util?
Adicionar comentario Ver comentarios
Pergunta 5

What is the role of the `plt.xticks()` and `plt.yticks()` functions in Matplotlib?

`plt.xticks()` and `plt.yticks()` are used to customize the tick positions and labels on the x-axis and y-axis, respectively.

Example:

plt.plot([1, 2, 3, 4], [10, 20, 25, 30])
plt.xticks([1, 2, 3, 4], ['A', 'B', 'C', 'D'])
plt.show()
Salvar para revisao

Salvar para revisao

Adicione este item aos favoritos, marque-o como dificil ou coloque-o em um conjunto de revisao.

Abrir minha biblioteca de aprendizado
Isto e util?
Adicionar comentario Ver comentarios
Pergunta 6

What is the purpose of the `plt.imshow()` function in Matplotlib?

`plt.imshow()` is used to display images in Matplotlib plots.

Example:

import matplotlib.image as mpimg
img = mpimg.imread('image.png')
plt.imshow(img)
plt.show()
Salvar para revisao

Salvar para revisao

Adicione este item aos favoritos, marque-o como dificil ou coloque-o em um conjunto de revisao.

Abrir minha biblioteca de aprendizado
Isto e util?
Adicionar comentario Ver comentarios
Pergunta 7

How can you add text annotations to a Matplotlib plot?

Use the `plt.text()` function to add text annotations at specified coordinates on the plot.

Example:

plt.plot([1, 2, 3, 4], [10, 20, 25, 30])
plt.text(2, 15, 'Annotation')
plt.show()
Salvar para revisao

Salvar para revisao

Adicione este item aos favoritos, marque-o como dificil ou coloque-o em um conjunto de revisao.

Abrir minha biblioteca de aprendizado
Isto e util?
Adicionar comentario Ver comentarios
Pergunta 8

Explain the purpose of the `plt.pie()` function in Matplotlib.

`plt.pie()` is used to create a pie chart in Matplotlib, representing data in a circular statistical graphic.

Example:

sizes = [20, 30, 40, 10]
labels = ['A', 'B', 'C', 'D']
plt.pie(sizes, labels=labels, autopct='%1.1f%%')
plt.show()
Salvar para revisao

Salvar para revisao

Adicione este item aos favoritos, marque-o como dificil ou coloque-o em um conjunto de revisao.

Abrir minha biblioteca de aprendizado
Isto e util?
Adicionar comentario Ver comentarios
Pergunta 9

How can you create a logarithmic scale in Matplotlib?

Use the `plt.xscale()` and `plt.yscale()` functions with the argument 'log' to create a logarithmic scale on the x-axis and y-axis, respectively.

Example:

plt.plot([1, 2, 3, 4], [10, 20, 30, 40])
plt.xscale('log')
plt.yscale('log')
plt.show()
Salvar para revisao

Salvar para revisao

Adicione este item aos favoritos, marque-o como dificil ou coloque-o em um conjunto de revisao.

Abrir minha biblioteca de aprendizado
Isto e util?
Adicionar comentario Ver comentarios
Pergunta 10

How can you create error bars in a Matplotlib plot?

Use the `plt.errorbar()` function to create a plot with error bars.

Example:

x = [1, 2, 3, 4]
y = [10, 20, 25, 30]
error = [1, 2, 1, 3]
plt.errorbar(x, y, yerr=error, fmt='o', capsize=5)
plt.show()
Salvar para revisao

Salvar para revisao

Adicione este item aos favoritos, marque-o como dificil ou coloque-o em um conjunto de revisao.

Abrir minha biblioteca de aprendizado
Isto e util?
Adicionar comentario Ver comentarios
Pergunta 11

How can you create a violin plot in Matplotlib?

Use the `plt.violinplot()` function to create a violin plot, which is used for visualizing the distribution of data.

Example:

data = [np.random.normal(0, std, 100) for std in range(1, 4)]
plt.violinplot(data, showmedians=True)
plt.show()
Salvar para revisao

Salvar para revisao

Adicione este item aos favoritos, marque-o como dificil ou coloque-o em um conjunto de revisao.

Abrir minha biblioteca de aprendizado
Isto e util?
Adicionar comentario Ver comentarios
Pergunta 12

How can you create a polar plot in Matplotlib?

Use the `plt.polar()` function to create a polar plot, which is useful for visualizing data in circular coordinates.

Example:

theta = np.linspace(0, 2*np.pi, 100)
r = 1 + np.sin(3*theta)
plt.polar(theta, r)
plt.show()
Salvar para revisao

Salvar para revisao

Adicione este item aos favoritos, marque-o como dificil ou coloque-o em um conjunto de revisao.

Abrir minha biblioteca de aprendizado
Isto e util?
Adicionar comentario Ver comentarios

Mais uteis segundo os usuarios:

Copyright © 2026, WithoutBook.