start new:
tmux
start new with session name:
tmux new -s myname
| # -*- coding: utf-8 -*- | |
| # -*- mode: python -*- | |
| # Adapted from mpl_toolkits.axes_grid1 | |
| # LICENSE: Python Software Foundation (http://docs.python.org/license.html) | |
| from matplotlib.offsetbox import AnchoredOffsetbox | |
| class AnchoredScaleBar(AnchoredOffsetbox): | |
| def __init__(self, transform, sizex=0, sizey=0, labelx=None, labely=None, loc=4, | |
| pad=0.1, borderpad=0.1, sep=2, prop=None, barcolor="black", barwidth=None, | |
| **kwargs): |
| # code from http://danieljlewis.org/files/2010/06/Jenks.pdf | |
| # described at http://danieljlewis.org/2010/06/07/jenks-natural-breaks-algorithm-in-python/ | |
| def getJenksBreaks( dataList, numClass ): | |
| dataList.sort() | |
| mat1 = [] | |
| for i in range(0,len(dataList)+1): | |
| temp = [] | |
| for j in range(0,numClass+1): | |
| temp.append(0) |