Skip to content

Commit b8e5f62

Browse files
committed
Some more fixes for visualization: "Cannot plot a one dimensional array."
1 parent 18a7855 commit b8e5f62

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pymoo/visualization/util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ def get_uniform_points_around_circle(n):
2929
def plot_circle(ax, center=0, radius=1, **kwargs):
3030
P = get_circle_points(5000)
3131
P = (P + center) * radius
32-
plot(P[:, 0], P[:, 1], **kwargs)
32+
plt.plot(P[:, 0], P[:, 1], **kwargs)
3333

3434

3535
def plot_radar_line(ax, x, **kwargs):
3636
x = np.vstack([x, x[0]])
37-
plot(x[:, 0], x[:, 1], **kwargs)
37+
plt.plot(x[:, 0], x[:, 1], **kwargs)
3838

3939

4040
def plot_axes_arrow(ax, X, extend_factor=1.0, **kwargs):
@@ -44,7 +44,7 @@ def plot_axes_arrow(ax, X, extend_factor=1.0, **kwargs):
4444

4545
def plot_axes_lines(ax, X, extend_factor=1.0, **kwargs):
4646
for (x, y) in X:
47-
plot([0, x * extend_factor], [0, y * extend_factor], **kwargs)
47+
plt.plot([0, x * extend_factor], [0, y * extend_factor], **kwargs)
4848

4949

5050
def plot_polygon(ax, x, **kwargs):

0 commit comments

Comments
 (0)