Browse files

PEP8 in samples.py.

  • Loading branch information...
1 parent 79d5493 commit eb604392e3718164618295e707784e1a345561ed @ralphbean ralphbean committed May 20, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 tw2/jqplugins/flot/samples.py
View
9 tw2/jqplugins/flot/samples.py
@@ -2,14 +2,17 @@
from widgets import FlotWidget
import math
+
+
def f(x):
- return x/math.pi
+ return x / math.pi
+
class DemoFlot(FlotWidget):
data = [
{
- 'data' : [[f(i), math.sin(f(i))] for i in range(20)],
- 'label' : "sin(x)"
+ 'data': [[f(i), math.sin(f(i))] for i in range(20)],
+ 'label': "sin(x)"
}
]
label = "sin plot"

0 comments on commit eb60439

Please sign in to comment.