Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

659
Vistas
matplotlib.axes.Axes.set_xticks throws "set_ticks() takes 2 positional arguments but 3 were given"

this easy example from matplotlib throws the mentioned error:

https://matplotlib.org/stable/gallery/lines_bars_and_markers/barchart.html

I also cannot find any typo according to the documentation of set_xticks():

https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.set_xticks.html

Can anyone provide clearification and some help, please?

Kind regards, Daniel

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

This is error is based on the matplotlib version you use. The set_axis command was changed from matplotlib version 3.4.x to 3.5.x. Try using the newer version. You can install it via

$ pip install matplotlib==3.5.0
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda