Skip to content

Commit 99680c4

Browse files
committed
Update README.md
1 parent e465c49 commit 99680c4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,12 +270,15 @@ if __name__ == "__main__":
270270
## List of important plot widget methods
271271

272272
- `clear()`: clear the plot.
273-
- `plot(x, y, line_style, hires_mode)`: plot a dataset with a line using the specified linestyle and high-resolution mode.
274-
- `scatter(x, y, marker, marker_style, hires_mode)`: plot a dataset with markers using the specified marker, marker style and high-resolution mode.
273+
- `plot(x, y, line_style, hires_mode, label)`: plot a dataset with a line using the specified linestyle and high-resolution mode.
274+
- `scatter(x, y, marker, marker_style, hires_mode, label)`: plot a dataset with markers using the specified marker, marker style and high-resolution mode.
275275
- `set_xlimits(xmin, xmax)`: set the x-axis limits. `None` means autoscale.
276276
- `set_ylimits(xmin, xmax)`: set the y-axis limits. `None` means autoscale.
277+
- `set_xticks(ticks)`: manually specify x-axis tick locations.
278+
- `set_yticks(ticks)`: manually specify y-axis tick locations.
277279
- `set_xlabel(label)`: set the x-axis label.
278280
- `set_ylabel(label)`: set the y-axis label.
281+
- `show_legend(location, is_visible)`: show or hide the plot legend.
279282

280283
Various other methods exist, mostly for coordinate transformations and handling UI events to zoom and pan the plot.
281284

0 commit comments

Comments
 (0)