Grid 1D


In [1]:
import matplotlib.pyplot as plt
from dec.grid1 import *
import dec.plot
%matplotlib inline

Periodic


In [2]:
ax = plt.subplot(311)
g = Grid_1D.periodic(4)
dec.plot.grid_1d(ax, g)

ax = plt.subplot(312)
g = Grid_1D.periodic(8)
dec.plot.grid_1d(ax, g)

ax = plt.subplot(313)
g = Grid_1D.periodic(16)
dec.plot.grid_1d(ax, g)

plt.show()


Regular


In [3]:
ax = plt.subplot(311)
g = Grid_1D.regular(4)
dec.plot.grid_1d(ax, g)
 
ax = plt.subplot(312)
g = Grid_1D.regular(8)
dec.plot.grid_1d(ax, g)
 
ax = plt.subplot(313)
g = Grid_1D.regular(16)
dec.plot.grid_1d(ax, g)

plt.show()


Chebyshev


In [4]:
ax = plt.subplot(311)
g = Grid_1D.chebyshev(4)
dec.plot.grid_1d(ax, g)
 
ax = plt.subplot(312)
g = Grid_1D.chebyshev(8)
dec.plot.grid_1d(ax, g)
 
ax = plt.subplot(313)
g = Grid_1D.chebyshev(16)
dec.plot.grid_1d(ax, g)

plt.show()