daft-dev / daft

Render probabilistic graphical models using matplotlib
https://docs.daft-pgm.org
MIT License
675 stars 120 forks source link

node_fc keyword argument not recognized #153

Open flyaflya opened 2 years ago

flyaflya commented 2 years ago

I might be missing something, but I am getting an error when trying to set a default face color for nodes:

pgm = daft.PGM(node_fc="w",dpi = 200)

yields the follow error:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
[<ipython-input-23-d3c3ef75b5d7>](https://localhost:8080/#) in <module>()
----> 1 pgm = daft.PGM(node_fc="w",dpi = 200)

TypeError: __init__() got an unexpected keyword argument 'node_fc'

If I just run pgm = daft.PGM(dpi = 200), then it works.

dfm commented 2 years ago

Yeah - it looks like that argument was added since the last release. I should do a new release, but in the meantime you could use:

pip install -U git+https://github.com/daft-dev/daft.git

to install the GitHub version!

flyaflya commented 2 years ago

thx for the quick reply!!! I can confirm that your suggestion works perfectly. Thx again.