Problem with Matplotlib example

Thomas Passin list1 at tompassin.net
Thu Apr 13 15:32:38 EDT 2023


On 4/13/2023 2:41 PM, Martin Schöön wrote:
> Anyone had success running this example?
> https://tinyurl.com/yhhyc9r
> 
> When I try I get this error:
> "TypeError: __init__() got an unexpected keyword argument 'transform'"
> 
> This is for the line
> "    m = MarkerStyle(SUCESS_SYMBOLS[mood], transform=t)"
> 
> Yes, I know, I could dive into the documentation myself but I hope
> some kind soul here will help out.
> 
> As far as I know I have an up-to-date matplotlib installed. Pip has
> nothing more modern to offer me.

It works for me, copy-pasted as is.

Python 3.11.3

C:\Users\tom>py -m pip show matplotlib
Name: matplotlib
Version: 3.6.3

C:\Users\tom>py -m pip show numpy
Name: numpy
Version: 1.24.2



More information about the Python-list mailing list