| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,7 +62,7 @@ def __init__(self, disp, pad, field): | |||
| 62 | 62 | def _reset(self,pad): | |
| 63 | 63 | self.x = pad.x + pad.xoffset | |
| 64 | 64 | if pad.y < 0: | |
| 65 | - self.y = pad.y + pad.yoffset | ||
| 65 | + self.y = pad.y + pad.yoffset | ||
| 66 | 66 | else: | |
| 67 | 67 | self.y = pad.y - pad.yoffset | |
| 68 | 68 | self.vx = pad.x - self.x | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,7 +30,7 @@ | |||
| 30 | 30 | coded[name] = ccode | |
| 31 | 31 | glyphd[name] = glyphind | |
| 32 | 32 | ||
| 33 | - code = coded['A'] | ||
| 33 | + code = coded['A'] | ||
| 34 | 34 | glyph = font.load_char(code) | |
| 35 | 35 | #print glyph.bbox | |
| 36 | 36 | print(glyphd['A'], glyphd['V'], coded['A'], coded['V']) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -83,7 +83,7 @@ def hex_to_rgba(ob, name, val): | |||
| 83 | 83 | ||
| 84 | 84 | def colorname_to_rgba(ob, name, val): | |
| 85 | 85 | hex = colors[val.lower()] | |
| 86 | - r,g,b = hex2color(hex) | ||
| 86 | + r,g,b = hex2color(hex) | ||
| 87 | 87 | return RGBA(r,g,b,1.0) | |
| 88 | 88 | colorname_to_rgba.info = 'a named color' | |
| 89 | 89 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -98,7 +98,7 @@ def __init__(self, width, height, xdescent, ydescent, | |||
| 98 | 98 | ||
| 99 | 99 | # draw a horizontal bar with length of 0.1 in Data coordinate | |
| 100 | 100 | # (ax.transData) with a label underneath. | |
| 101 | - asb = AnchoredSizeBar(ax.transData, | ||
| 101 | + asb = AnchoredSizeBar(ax.transData, | ||
| 102 | 102 | 0.1, | |
| 103 | 103 | r"1$^{\prime}$", | |
| 104 | 104 | loc=8, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ | |||
| 11 | 11 | ||
| 12 | 12 | from pylab import * | |
| 13 | 13 | ||
| 14 | - x = array([10, 8, 13, 9, 11, 14, 6, 4, 12, 7, 5]) | ||
| 14 | + x = array([10, 8, 13, 9, 11, 14, 6, 4, 12, 7, 5]) | ||
| 15 | 15 | y1 = array([8.04, 6.95, 7.58, 8.81, 8.33, 9.96, 7.24, 4.26, 10.84, 4.82, 5.68]) | |
| 16 | 16 | y2 = array([9.14, 8.14, 8.74, 8.77, 9.26, 8.10, 6.13, 3.10, 9.13, 7.26, 4.74]) | |
| 17 | 17 | y3 = array([7.46, 6.77, 12.74, 7.11, 7.81, 8.84, 6.08, 5.39, 8.15, 6.42, 5.73]) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,8 +8,8 @@ | |||
| 8 | 8 | def millions(x): | |
| 9 | 9 | return '$%1.1fM' % (x*1e-6) | |
| 10 | 10 | ||
| 11 | - x = rand(20) | ||
| 12 | - y = 1e7*rand(20) | ||
| 11 | + x = rand(20) | ||
| 12 | + y = 1e7*rand(20) | ||
| 13 | 13 | ||
| 14 | 14 | fig, ax = subplots() | |
| 15 | 15 | ax.fmt_ydata = millions | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,7 +14,7 @@ | |||
| 14 | 14 | import matplotlib.pyplot as plt | |
| 15 | 15 | import numpy as np | |
| 16 | 16 | ||
| 17 | - x = np.arange(4) | ||
| 17 | + x = np.arange(4) | ||
| 18 | 18 | money = [1.5e5, 2.5e6, 5.5e6, 2.0e7] | |
| 19 | 19 | ||
| 20 | 20 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,7 +36,7 @@ def moving_average(x, n, type='simple'): | |||
| 36 | 36 | ||
| 37 | 37 | weights /= weights.sum() | |
| 38 | 38 | ||
| 39 | - a = np.convolve(x, weights, mode='full')[:len(x)] | ||
| 39 | + a = np.convolve(x, weights, mode='full')[:len(x)] | ||
| 40 | 40 | a[:n] = a[n] | |
| 41 | 41 | return a | |
| 42 | 42 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | 7 | N = 5 | |
| 8 | 8 | menMeans = (150*cm, 160*cm, 146*cm, 172*cm, 155*cm) | |
| 9 | - menStd = ( 20*cm, 30*cm, 32*cm, 10*cm, 20*cm) | ||
| 9 | + menStd = ( 20*cm, 30*cm, 32*cm, 10*cm, 20*cm) | ||
| 10 | 10 | ||
| 11 | 11 | fig, ax = plt.subplots() | |
| 12 | 12 | ||
@@ -16,7 +16,7 @@ | |||
| 16 | 16 | ||
| 17 | 17 | ||
| 18 | 18 | womenMeans = (145*cm, 149*cm, 172*cm, 165*cm, 200*cm) | |
| 19 | - womenStd = (30*cm, 25*cm, 20*cm, 31*cm, 22*cm) | ||
| 19 | + womenStd = (30*cm, 25*cm, 20*cm, 31*cm, 22*cm) | ||
| 20 | 20 | p2 = ax.bar(ind+width, womenMeans, width, color='y', bottom=0*cm, yerr=womenStd) | |
| 21 | 21 | ||
| 22 | 22 | ax.set_title('Scores by group and gender') | |
| Back | FazBrowse Home | New Git URL |
0 commit comments