diff --git a/templates/setup_templates.html b/templates/setup_templates.html
index a9b1f75..040a9bd 100644
--- a/templates/setup_templates.html
+++ b/templates/setup_templates.html
@@ -8,8 +8,7 @@
var STEP = "auto";
// Width of the graph in pixels
-// Let's use 400 for "normal" graphs and 170 for "small" graphs
-var SIZE = 400;
+var SIZE = 288;
var xScale;
var yScale;
@@ -20,52 +19,48 @@
@@ -75,7 +70,7 @@
var range = RANGE;
/* The output's largest side is limited to this many pixels */
-var size = 400;
+var size = 288;
setup();
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
@@ -105,7 +100,7 @@
var LABEL_DEGREES = false; // ignored if LABEL_THETA is false
// Width of the graph in pixels
-var SIZE = 400;
+var SIZE = 288;
setup();
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
@@ -115,6 +110,10 @@
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
// Setup grid, ticks, and labels and initialize graph.
function setup() {
+ var PADDING = 35;
+ if (LABEL_THETA) {
+ SIZE -= PADDING * 2;
+ }
var dimensions = [SIZE, SIZE];
var range = [[-R_MAX, R_MAX], [-R_MAX, R_MAX]];
@@ -129,7 +128,7 @@
var paddedRange = range;
if (LABEL_THETA) {
paddedRange = _.map(range, function(extent, i) {
- var padding = 35 / scale[i];
+ var padding = PADDING / scale[i];
return [extent[0] - padding, extent[1] + padding];
});
}