def plot_a_graph():
    f, a = plt.subplots(1)
line = plt.plot(list(range(10)))
print(multiprocessing.current_process().name, 'starting plot show process')
plt.show()
Plotting with matplotlib in threads