Skip to content

Commit a170ec7

Browse files
committed
Add comment explaining finalDraw function
1 parent 82dbfcc commit a170ec7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plot_api/plot_api.js

+3
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,9 @@ Plotly.plot = function(gd, data, layout, config) {
370370
return Plots.previousPromises(gd);
371371
}
372372

373+
// An initial paint must be completed before these components can be
374+
// correctly sized and the whole plot re-margined. gd._replotting must
375+
// be set to false before these will work properly.
373376
function finalDraw(){
374377
Shapes.drawAll(gd);
375378
Plotly.Annotations.drawAll(gd);

0 commit comments

Comments
 (0)