File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
content/matplotlib/concepts/pyplot/terms/ylim Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -28,17 +28,21 @@ Or to get current limits:
2828bottom, top = pyplot.ylim()
2929```
3030
31+ ** Parameters:**
32+
3133The ` ylim() ` function accepts the following parameters:
3234
3335- ` bottom ` (optional): A float representing the lower y-axis limit. If not provided, the current lower limit is returned.
3436- ` top ` (optional): A float representing the upper y-axis limit. If not provided, the current upper limit is returned.
3537
38+ ** Return value:**
39+
3640The function returns:
3741
3842- A tuple ` (bottom, top) ` containing the current y-axis limits if no arguments are provided.
3943- The new y-axis limits as a tuple if arguments are provided.
4044
41- ## Example
45+ ## Example 1: Setting Y-Axis Limits
4246
4347The following example demonstrates how to use ` ylim() ` to set y-axis limits:
4448
You can’t perform that action at this time.
0 commit comments