Skip to content

Instantly share code, notes, and snippets.


Gorjan gorjanz

View GitHub Profile
gorjanz / interactive-scatterplot
Created Mar 27, 2017
An example of an interactive scatterplot using Python and the matplotlib library.
View interactive-scatterplot
# 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