Newbie
Newbie

Reputation: 21

What are the star/asterisks in a parameter in Matplotlib?

I'm trying to see all options of parameters in a Matplotlib method, for example, Axes.set_xticks(ticks, *, minor=False). What exactly is * and where can I view the options? Thanks!

Upvotes: 1

Views: 547

Answers (1)

H. Doebler
H. Doebler

Reputation: 651

The * delimits positional from keyword-only arguments.

This means that you cannot hand over a value for minor by position but always have to use the minor=<VALUE> syntax in the call.

The only positional argument of this method is ticks, a list of floats.

Upvotes: 2

Related Questions