Skip to content

Commit 711d525

Browse files
committed
plot's labels
1 parent f9f58a0 commit 711d525

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

js/sass/lab/index.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ pre {
5757
fill: var(--jp-content-font-color1);
5858
}
5959

60+
.plot-text .plot-resp {
61+
fill: var(--jp-content-font-color1);
62+
}
63+
6064
.plot-legend-histogram {
6165
stroke: var(--jp-content-font-color3);
6266
fill: var(--jp-content-font-color3);
@@ -70,6 +74,11 @@ pre {
7074
stroke: var(--jp-content-font-color1);
7175
}
7276

77+
.legend-pointer {
78+
stroke: var(--jp-content-font-color1);
79+
fill: var(--jp-content-font-color1);
80+
}
81+
7382
.plot-gridline-base,
7483
.plot-gridline,
7584
.plot-tick {

js/src/plots/plotsrc/_js/std/plotbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ define(['underscore'], function (_) {
325325
return d.y;
326326
})
327327
.attr('text-anchor', 'middle')
328-
.style('fill', 'black')
328+
.attr('class', 'plot-label')
329329
.text(function (d) {
330330
return d.text;
331331
});

js/src/plots/plotsrc/_js/std/plotline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ define(['underscore'], function (_) {
324324
return d.y;
325325
})
326326
.attr('text-anchor', 'middle')
327-
.style('fill', 'black')
327+
.attr('class', 'plot-label')
328328
.style('stroke', 'none')
329329
.text(function (d) {
330330
return d.text;

js/src/plots/plotsrc/_js/std/plotpoint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ define(['underscore'], function (_) {
613613
return d.y;
614614
})
615615
.attr('text-anchor', 'middle')
616-
.style('fill', 'black')
616+
.attr('class', 'plot-label')
617617
.style('stroke', 'none')
618618
.text(function (d) {
619619
return d.text;

js/src/plots/plotsrc/_js/std/plotstem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ define(['underscore'], function (_) {
331331
return d.y;
332332
})
333333
.attr('text-anchor', 'middle')
334-
.style('fill', 'black')
334+
.attr('class', 'plot-label')
335335
.style('stroke', 'none')
336336
.text(function (d) {
337337
return d.text;

0 commit comments

Comments
 (0)