Skip to content

Instantly share code, notes, and snippets.

View TomasDrozdik's full-sized avatar

drozt TomasDrozdik

View GitHub Profile
@TomasDrozdik
TomasDrozdik / overlapplot.py
Last active May 18, 2022 23:02
Example of interval visualisation on a timeline with seaborn-like interface using matplotlib bars.
import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib
import matplotlib.pyplot as plt
def overlapplot(xstart, xend, ycategory, data=None, hue=None, palette=None, **kwargs):
# Load data
start = "start"