Datasets:
Update durham_trees_analysis.py
Browse files- durham_trees_analysis.py +2 -2
durham_trees_analysis.py
CHANGED
@@ -42,8 +42,8 @@ def plot_interactive_scatter():
|
|
42 |
@cursor.connect("add")
|
43 |
def on_add(sel):
|
44 |
sel.annotation.set_text(df.iloc[sel.target.index]['species'])
|
45 |
-
plt.show()
|
46 |
plt.savefig('interactive_scatter.png')
|
|
|
47 |
display(Image('interactive_scatter.png'))
|
48 |
|
49 |
# Plot tree planting sites with geopandas
|
@@ -59,8 +59,8 @@ def plot_tree_sites():
|
|
59 |
ax.set_xlabel('Longitude')
|
60 |
ax.set_ylabel('Latitude')
|
61 |
ax.set_axis_off()
|
62 |
-
plt.show()
|
63 |
plt.savefig('tree_sites.png')
|
|
|
64 |
display(Image('tree_sites.png'))
|
65 |
|
66 |
# Print correlation matrix
|
|
|
42 |
@cursor.connect("add")
|
43 |
def on_add(sel):
|
44 |
sel.annotation.set_text(df.iloc[sel.target.index]['species'])
|
|
|
45 |
plt.savefig('interactive_scatter.png')
|
46 |
+
plt.show()
|
47 |
display(Image('interactive_scatter.png'))
|
48 |
|
49 |
# Plot tree planting sites with geopandas
|
|
|
59 |
ax.set_xlabel('Longitude')
|
60 |
ax.set_ylabel('Latitude')
|
61 |
ax.set_axis_off()
|
|
|
62 |
plt.savefig('tree_sites.png')
|
63 |
+
plt.show()
|
64 |
display(Image('tree_sites.png'))
|
65 |
|
66 |
# Print correlation matrix
|