sudo apt update && sudo apt upgrade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io | |
import sys | |
ANSI_SEQ = "\x1b[{}m" | |
FG_RGB = "38;2;{};{};{}" | |
BG_RGB = "48;2;{};{};{}" | |
RESET="0" | |
FRAMED="51" | |
ATTRS = {key:code for key, code in [line.strip().split() for line in """\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# -*- mode: python -*- | |
# Adapted from mpl_toolkits.axes_grid2 | |
# LICENSE: Python Software Foundation (http://docs.python.org/license.html) | |
from matplotlib.offsetbox import AnchoredOffsetbox | |
class AnchoredScaleBar(AnchoredOffsetbox): | |
def __init__(self, transform, size=0, label=None, horizontal = True, style = 'dark', loc=4, | |
pad=0.1, borderpad=0.1, sep=2, prop=None, **kwargs): | |
""" |