Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit 4e4ad07

Browse files
figure -> plot
1 parent 4488658 commit 4e4ad07

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,13 @@ plotly.getFigure('fileOwner', 'fileId', function (err, figure) {
236236

237237
##plotly.deletePlot(fid[, callback])
238238
`fid` is a String, the id of the plot you wish you delete
239-
`callback` is a function with `err` and `figure` as parameters. `err`, if present, is the error message returned from the request. `figure` is the figure that was deleted.
239+
`callback` is a function with `err` and `plot` as parameters. `err`, if present, is the error message returned from the request. `plot` is the plot that was deleted.
240240

241241
```javascript
242242
var plotly = require('../.')('username','apiKey');
243243

244-
plotly.deletePlot('88', function (err, figure) {
244+
plotly.deletePlot('88', function (err, plot) {
245245
if (err) console.log(err)
246-
else console.log(figure); // msg is the figure that was deleted
246+
else console.log(plot); // msg is the figure that was deleted
247247
});
248248
```

examples/delete-plot.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var plotly = require('../.')('alexander.daniel','u1jactdk3m');
44

5-
plotly.deletePlot('2718', function (err, figure) {
5+
plotly.deletePlot('2718', function (err, plot) {
66
if (err) console.log(err);
7-
else console.log(figure);
7+
else console.log(plot);
88
});

0 commit comments

Comments
 (0)