I was having a difficult time fixing the display of a legend in one matplotlib figure, and then I noticed that maybe there is an incongruence in matplotlib documentation, or I am not searching in the right place.
In my code, I can only make a horizontal legend work if I define ncol
, as in the following example from
For me it seems as ncol
parameter will be deprecated in the future and ncols
will be the only one used.
Notice that the parameter names change within versions of the packages. if you check older versions of matplotlib 3.2.0 ncol
was the parameter defined.