Commit 3b80148d authored by olau@iola.dk's avatar olau@iola.dk

Set zero tick

git-svn-id: https://flot.googlecode.com/svn/trunk@38 1e0a6537-2640-0410-bfb7-f154510ff394
parent 65f4bf88
...@@ -28,7 +28,7 @@ $(function () { ...@@ -28,7 +28,7 @@ $(function () {
var d1 = []; var d1 = [];
for (var i = 0; i < Math.PI * 2; i += 0.25) for (var i = 0; i < Math.PI * 2; i += 0.25)
d1.push([i, Math.sin(i)]); d1.push([i, Math.sin(i)]);
var d2 = []; var d2 = [];
for (var i = 0; i < Math.PI * 2; i += 0.25) for (var i = 0; i < Math.PI * 2; i += 0.25)
d2.push([i, Math.cos(i)]); d2.push([i, Math.cos(i)]);
...@@ -45,7 +45,7 @@ $(function () { ...@@ -45,7 +45,7 @@ $(function () {
lines: { show: true }, lines: { show: true },
points: { show: true }, points: { show: true },
xaxis: { xaxis: {
ticks: [[Math.PI/2, "\u03c0/2"], [Math.PI, "\u03c0"], [Math.PI * 3/2, "3\u03c0/2"], [Math.PI * 2, "2\u03c0"]] ticks: [0, [Math.PI/2, "\u03c0/2"], [Math.PI, "\u03c0"], [Math.PI * 3/2, "3\u03c0/2"], [Math.PI * 2, "2\u03c0"]]
}, },
yaxis: { yaxis: {
noTicks: 10, noTicks: 10,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment