Skip to content

Instantly share code, notes, and snippets.

View gorjanz's full-sized avatar

Gorjan gorjanz

View GitHub Profile
@gorjanz
gorjanz / interactive-scatterplot
Created March 27, 2017 18:27
An example of an interactive scatterplot using Python and the matplotlib library.
# import the random module since we will use it to generate the data
import random as rnd
# import the main drawing library
import matplotlib.pyplot as plt
from matplotlib.widgets import Button
from matplotlib.text import Annotation
# import the seaborn module which is based on matplotlib to make our visualization more presentable
import seaborn as sns