aresio / simpful

A friendly python library for fuzzy logic reasoning
Academic Free License v3.0
129 stars 33 forks source link

How can I plot the output surface? #25

Closed khinggan closed 11 months ago

khinggan commented 11 months ago

Thanks for the excellent repo and paper.

I want to plot the output surface like Fig.4 in the paper.

What kind of code should I add in the mamdani tip problem example to get the figure like Fig. 4. in the paper?

Thanks

sspola commented 11 months ago

Hi @khinggan and thank you! 😃 In the examples folder there is a code snippet that should do exactly what you are looking for. You can find it here.

Hope it helps!

sspola commented 11 months ago

@aresio just made me notice that we also have a function to do that plot_surface. It's a method of the FuzzySystem object

khinggan commented 11 months ago

Thanks for @sspola kind reply, it helps me a lot.

best regards