Map = geemap.Map()
# Data for plotting
t = np.arange(0.0, 2.0, 0.01)
s = 1 + np.sin(2 * np.pi * t)
fig, ax = plt.subplots()
ax.plot(t, s)
ax.set(
xlabel="time (s)", ylabel="voltage (mV)", title="About as simple as it gets, folks"
)
ax.grid()
# Create an output widget to host the plot
output_widget = Output()
# Show the plot on the widget
with output_widget:
output_widget.clear_output()
plt.show()
# Add the widget as a control to the map
output_control = WidgetControl(widget=output_widget, position="bottomright")
Map.add_control(output_control)