Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cbe7043

Browse files
author
Jakub Klus
committed
Fix code after applying suggestions.
1 parent 4a09374 commit cbe7043

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tutorials/intermediate/autoscale.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@
66
scale ranges automatically with respect to supplied data - autoscaling.
77
This tutorial shows concepts of individual autoscaling options and
88
investigates cornerstone examples regarding the needs for manual adjustments.
9+
The limits on an axis can be set manually (e.g. ``ax.set_xlim(xmin, xmax)``)
10+
or Matplotlib can set them automatically based on the data already on the
11+
axes. There are a number of options to this autoscaling behaviour,
12+
discussed below.
913
"""
10-
The limits on an axis can be set manually (e.g. ``ax.set_xlim(xmin, xmax)``) or Matplotlib can set them automatically based on the data already on the axes. There are a number of options to this autoscaling behaviour, discussed below.
1114

1215
###############################################################################
13-
# We will start with a simple line plot showing that autoscaling
16+
# We will start with a simple line plot showing that autoscaling
1417
# extends the visible range 5% beyond the real data range (-2π, 2π).
1518

1619
import numpy as np
@@ -119,8 +122,8 @@
119122
#
120123
# It is possible to disable autoscaling. By default, the limits are
121124
# recalculated every time you add a new curve to the plot (see next figure).
122-
# However, there are cases when you don't want to automatically adjust the
123-
viewport to new data.
125+
# However, there are cases when you don't want to automatically adjust the
126+
# viewport to new data.
124127

125128
fig, ax = plt.subplots(ncols=2, figsize=(12, 8))
126129
ax[0].plot(x, y)

0 commit comments

Comments
 (0)