Skip to content

Commit 8a56b25

Browse files
committed
Shifted axis labels so they cannot collide with the axis limits
1 parent 4636034 commit 8a56b25

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

js/widgets/main_plot.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,14 @@ $(function() {
117117
label: "xlabel",
118118
text: this.xlabel,
119119
x: (this.width + this.margins.left - this.margins.right) / 2,
120-
y: this.height - 15,
120+
y: this.height - 5,
121121
font_size: 16
122122
});
123123
this._elements.ylabel = main_plot.append("g");
124124
$(this._elements.ylabel.node()).editable_svg_text({
125125
label: "ylabel",
126126
text: this.ylabel,
127-
x: 25,
127+
x: 12,
128128
y: (this.height + this.margins.top - this.margins.bottom) / 2,
129129
font_size: 16,
130130
rotation: "vertical"

0 commit comments

Comments
 (0)