“Establecer etiquetas del eje python” Código de respuesta

Establecer etiquetas del eje python

# Basic syntax:
plt.xlabel("X axis label") # Add ", fontsize = #" to control fontsize
plt.ylabel("Y axis label")

# Example usage:
plt.plot(range(5))
plt.xlabel("X axis label")
plt.ylabel("Y axis label")
plt.title("Figure title", fontsize = 20)

# Note, xlabel and ylabel come from matplotlib.pyplot and plt is an 
# 	abbreviation for this, e.g. import matplotlib.pyplot as plt
Charles-Alexandre Roy

etiquetas de ejes matplotlib

fig = plt.figure()
ax = fig.add_subplot(...)

ax.set_title('Title Here')

ax.set_xlabel('x label here')
ax.set_ylabel('y label here')
ax.set_zlabel('z label here')
Worried Wolf

Respuestas similares a “Establecer etiquetas del eje python”

Preguntas similares a “Establecer etiquetas del eje python”

Más respuestas relacionadas con “Establecer etiquetas del eje python” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código