X-Git-Url: https://svn.cri.ensmp.fr/git/linpy.git/blobdiff_plain/e2266a6ca10276d2af3065f9e140d994459b92f3..b60eea3e1f1ee3e2ec26b7df2ae64e6da8586372:/examples/diamonds.py?ds=sidebyside diff --git a/examples/diamonds.py b/examples/diamonds.py index 572a870..0978d4c 100755 --- a/examples/diamonds.py +++ b/examples/diamonds.py @@ -5,7 +5,7 @@ import matplotlib.pyplot as plt from matplotlib import pylab from mpl_toolkits.mplot3d import Axes3D -from pypol import * +from linpy import * x, y, z = symbols('x y z') @@ -44,4 +44,5 @@ cubo = Le(0, x) & Le(x, 5) & Le(0, y) & Le(y, 5) & Le(0, z) & Le(z, 5) & \ Le(-2, -x + y + z) & Le(-x + y + z, 7) & \ Le(-2, x + y - z) & Le(x + y - z, 7) cubo.plot(cubo_plot, facecolors=(0, 0, 1, 0.75)) + pylab.show()