“Matplotlib establece tigas enteras” Código de respuesta

Matplotlib establece tigas enteras

import matplotlib.pyplot as plt
from matplotlib.ticker import MaxNLocator
#...
ax = plt.figure().gca()
#...
ax.xaxis.set_major_locator(MaxNLocator(integer=True))
Real Raccoon

restringir las garrapatas a los integers matplotlib

    from pylab import MaxNLocator

    ya = axes.get_yaxis()
    ya.set_major_locator(MaxNLocator(integer=True))
Real Raccoon

Respuestas similares a “Matplotlib establece tigas enteras”

Preguntas similares a “Matplotlib establece tigas enteras”

Más respuestas relacionadas con “Matplotlib establece tigas enteras” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código