Skip to content

Instantly share code, notes, and snippets.

View MacroMozilla's full-sized avatar
😃
OPEN_TO_WORK

MacroMozilla MacroMozilla

😃
OPEN_TO_WORK
  • Toronto
View GitHub Profile
@MacroMozilla
MacroMozilla / mpl_interaction.py
Created April 3, 2018 01:00 — forked from t20100/mpl_interaction.py
Pan and zoom interaction over a matplotlib Figure
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# /*##########################################################################
#
# Copyright (c) 2016 European Synchrotron Radiation Facility
#
# 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