File mplot/maxes.py changed (mode: 100644) (index e4e137f..0707721) |
... |
... |
def tri_nodes_plot(ax, tri_space=None, tn_scheme=None,\ |
86 |
86 |
else: |
else: |
87 |
87 |
assert 100500 < 0 #оӵ мар лэсьтӥське татын? � |
assert 100500 < 0 #оӵ мар лэсьтӥське татын? � |
88 |
88 |
|
|
89 |
|
mart.plot_sample(ax, kwargs['nodes'], color=color) |
|
|
89 |
|
mart.plot_sample(ax, kwargs['nodes'], ls='', marker='.',\ |
|
90 |
|
mec=color, mfc=color, ms=1, alpha=0.5) |
90 |
91 |
|
|
91 |
92 |
|
|
92 |
93 |
|
|
|
... |
... |
def tri_nodes_plot(ax, tri_space=None, tn_scheme=None,\ |
105 |
106 |
mart.curly(ax, linewidths=linewidths) |
mart.curly(ax, linewidths=linewidths) |
106 |
107 |
Tri.integrate() |
Tri.integrate() |
107 |
108 |
if tri_space == ax.space: |
if tri_space == ax.space: |
108 |
|
mart.triplot(ax, color="#B2B2B2", zorder=100) |
|
|
109 |
|
mart.triplot(ax, color="#B2B2B2", lw=0.5, zorder=100) |
109 |
110 |
else: |
else: |
110 |
|
mart.tri_plot(ax, Tri=Tri, color="#B2B2B2", zorder=100) |
|
|
111 |
|
mart.tri_plot(ax, Tri=Tri, color="#B2B2B2", lw=0.5, zorder=100) |
111 |
112 |
|
|
112 |
|
mart.scatter_points(ax, zorder=100500) |
|
113 |
|
mart.plot_boundaries(ax, zorder=1050) |
|
|
113 |
|
mart.plot_points(ax, ms=2.5, zorder=100500) |
|
114 |
|
mart.plot_boundaries(ax, lw=0.7, zorder=1050) |
114 |
115 |
|
|
115 |
116 |
def tri_R_nodes_plot(ax, **kwargs): |
def tri_R_nodes_plot(ax, **kwargs): |
116 |
117 |
tri_nodes_plot(ax, tri_space='R', **kwargs) |
tri_nodes_plot(ax, tri_space='R', **kwargs) |
|
... |
... |
def tri_plot(ax, tri_space=None, linewidths=[0.7, 0.5, 0.4, 0.3, 0.2, 0.1]): |
137 |
138 |
mart.setup(ax) |
mart.setup(ax) |
138 |
139 |
mart.curly(ax, linewidths=linewidths) |
mart.curly(ax, linewidths=linewidths) |
139 |
140 |
if tri_space == ax.space: |
if tri_space == ax.space: |
140 |
|
mart.triplot(ax, color="#B2B2B2", zorder=100) |
|
|
141 |
|
mart.triplot(ax, color="#B2B2B2", lw=0.5, zorder=100) |
141 |
142 |
else: |
else: |
142 |
|
mart.tri_plot(ax, Tri=Tri, color="#B2B2B2", zorder=100) |
|
|
143 |
|
mart.tri_plot(ax, Tri=Tri, color="#B2B2B2", lw=0.5, zorder=100) |
143 |
144 |
|
|
144 |
|
mart.scatter_points(ax, zorder=100500) |
|
145 |
|
mart.plot_boundaries(ax, zorder=1050) |
|
|
145 |
|
mart.plot_points(ax, ms=2.5, zorder=100500) |
|
146 |
|
mart.plot_boundaries(ax, lw=0.7, zorder=1050) |
146 |
147 |
|
|
147 |
148 |
def tri_R_plot(ax, **kwargs): |
def tri_R_plot(ax, **kwargs): |
148 |
149 |
tri_plot(ax, tri_space='R', **kwargs) |
tri_plot(ax, tri_space='R', **kwargs) |
|
... |
... |
def convex_hull_plot(ax, tri_space=None, linewidths=[0.7, 0.5, 0.4, 0.3, 0.2, 0. |
161 |
162 |
mart.setup(ax) |
mart.setup(ax) |
162 |
163 |
mart.curly(ax, linewidths=linewidths) |
mart.curly(ax, linewidths=linewidths) |
163 |
164 |
qhull = khull.QHull(ax.sample_box, space=tri_space, incremental=False) |
qhull = khull.QHull(ax.sample_box, space=tri_space, incremental=False) |
164 |
|
mart.qhull_plot(ax, qhull, color="#B2B2B2", zorder=100) |
|
165 |
|
mart.scatter_points(ax, zorder=100500) |
|
166 |
|
mart.plot_boundaries(ax) |
|
|
165 |
|
mart.qhull_plot(ax, qhull, color="#B2B2B2", lw=0.7, zorder=100) |
|
166 |
|
mart.plot_points(ax, ms=2.5, zorder=100500) |
|
167 |
|
mart.plot_boundaries(ax, lw=0.7, zorder=1050) |
167 |
168 |
|
|
168 |
169 |
def just_points(ax): |
def just_points(ax): |
169 |
170 |
ax.set_xlabel('$x_{1}$') |
ax.set_xlabel('$x_{1}$') |