In [1]:
%load_ext autoreload
%autoreload 2
%matplotlib inline
import matplotlib.pyplot as plt
import os
import numpy as np
import pandas as pd
import warnings
warnings.filterwarnings('ignore')
In [2]:
import phuzzy
from phuzzy.mpl import mix_mpl
import phuzzy.mpl.plots
In [3]:
x = phuzzy.TruncNorm(alpha0=[1, 2], name="x")
y = phuzzy.Triangle(alpha0=[3, 6], alpha1=[4], name="y")
In [4]:
mix_mpl(x)
x.plot(filepath="FuzzyNumber_plot.png")
Out[4]:
In [5]:
fig, ax = phuzzy.mpl.plots.plot_xy(x,y)
fig.savefig("plot_xy.png")
In [6]:
fig, ax = phuzzy.mpl.plots.plot_xyz(x,y,x+y)
fig.savefig("plot_xyz.png")
In [10]:
fig, ax = phuzzy.mpl.plots.plot_3d(x,y)
fig.savefig("plot_3d.png")
In [13]:
fig, axs = phuzzy.mpl.plots.plot_xy_3d(x,y)
fig.savefig("plot_xy_3d.png")
In [ ]: