pingjiang / dygraphs

Automatically exported from code.google.com/p/dygraphs
0 stars 0 forks source link

Double y-axis with independent tick-marks. #437

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Similar to gnuplot dygraphs should support independed tick-marks when using 
multiple y-axis, so the right-axis can have 'nice' tick units.

e.g. where in gnuplot the ticks might be:
left: 0 5000 10000 ... 50000
right: 0 10 20 ... 70

using dygraph they are:
left: 0 10000 20000 ... 50000
right: 0 12.49816 24.99633 ... 62.49082

which looks rather ugly.

Original issue reported on code.google.com by ra...@google.com on 22 Feb 2013 at 7:02

GoogleCodeExporter commented 9 years ago
Can you provide some links to documentation on how this works in gnuplot?

Original comment by danvdk on 2 Mar 2013 at 5:48

GoogleCodeExporter commented 9 years ago
set xrange [-10:10]
set ytics auto nomirror tc lt 1
set ylabel '2*x' tc lt 1
set y2tics auto nomirror tc lt 2
set y2label '4*x' tc lt 2
plot 2*x linetype 1, 4*x linetype 2 axes x1y2

Does that help?

Original comment by ra...@google.com on 4 Mar 2013 at 1:51

GoogleCodeExporter commented 9 years ago
Though 'plot 2*x linetype 1, 4.12*x linetype 2 axes x1y2' would be a better 
example I suppose, with 4*x it's the rounding issue doesn't come up :)

Original comment by ra...@google.com on 4 Mar 2013 at 1:53