Skip to content

Instantly share code, notes, and snippets.

View coroa's full-sized avatar

Jonas Hörsch coroa

  • Siegsdorf, Germany
View GitHub Profile
@coroa
coroa / LICENSE
Created November 6, 2020 00:04
License for all public gists at https://gist.github.com/coroa
MIT License
Copyright (c) 2020 Jonas Hörsch
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
import numpy as np
from bisect import bisect
from matplotlib.text import Annotation
from matplotlib.transforms import Affine2D
class LineAnnotation(Annotation):
"""A sloped annotation to *line* at position *x* with *text*
Optionally an arrow pointing from the text to the graph at *x* can be drawn.
@coroa
coroa / rulegraphfilter.ipynb
Created August 14, 2019 12:43
Snakemake graphviz nearest-neighbour filter
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@coroa
coroa / offshorepotentials.ipynb
Last active July 4, 2019 13:56
Offshore Potentials based on GLAES for PyPSA-Eur
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@coroa
coroa / CustomAggregationAtlite.ipynb
Last active July 2, 2019 23:23
Spatial temperature aggregation with Atlite
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@coroa
coroa / EnergyOptimizationWithJulia.ipynb
Created May 23, 2019 13:08
Energy System Optimization With Julia Dive Into The Packages
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.