I have a Python matplotlib script that uses basemap to draw a simple map and plot data onto it.
On Windows there are tool ikons like Home/Zoom/Save. On my Ubuntu 17.1 machine the exact same program does not show these tools.
This is what Im using:
import matplotlib as mpl
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap
import numpy as np
from Tkinter import PhotoImage
This is the code that makes the map:
plt.subplot(122)
plt.title('mapsysname')
earth = Basemap(projection='mill')
earth.drawcoastlines(color='0.50', linewidth=0.25)
earth.fillcontinents(color='0.95', zorder=0)
x, y = earth(longitudes, latitudes)
earth.scatter(x, y, color='g', marker='o', linewidths=0.5)
for i, txt in enumerate(datalogger_id):
plt.annotate(txt, xy=(x[i], y[i]), xycoords='data', xytext=(8, -4), textcoords='offset points', wrap=True)
plt.show()
longitudes
and latitudes
are lists and datalogger_id
is a string.
Is there some additional package needed on Linux?