Skip to content

Commit

Permalink
changed deprecated nodes_iter() to nodes() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Japhiolite committed Feb 18, 2019
1 parent deb9736 commit ca65bd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gempy/plotting/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def plot_topo_g(geo_data, G, centroids, direction="y"):
plt.plot(np.array([centroids[a][c1], centroids[b][c1]]) * e1 / r1 + d1,
np.array([centroids[a][c2], centroids[b][c2]]) * e2 / r2 + d2, "black", linewidth=0.75)

for node in G.nodes_iter():
for node in G.nodes():
plt.plot(centroids[node][c1] * e1 / r1 + d1, centroids[node][c2] * e2 / r2 +d2,
marker="o", color="black", markersize=10, alpha=0.75)
plt.text(centroids[node][c1] * e1 / r1 + d1,
Expand Down

0 comments on commit ca65bd7

Please sign in to comment.