diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 83f47a0e27bf..9a7b40ccac10 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -34,7 +34,7 @@ jobs: persist-credentials: false - name: Initialize CodeQL - uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1 + uses: github/codeql-action/init@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2 with: languages: ${{ matrix.language }} @@ -45,4 +45,4 @@ jobs: pip install --user -v . - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1 + uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2 diff --git a/.github/workflows/cygwin.yml b/.github/workflows/cygwin.yml index bd9ec07de39f..4b790ea52a7d 100644 --- a/.github/workflows/cygwin.yml +++ b/.github/workflows/cygwin.yml @@ -141,21 +141,21 @@ jobs: # FreeType build fails with bash, succeeds with dash - name: Cache pip - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 + uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: C:\cygwin\home\runneradmin\.cache\pip key: Cygwin-py3.${{ matrix.python-minor-version }}-pip-${{ hashFiles('pyproject.toml') }} restore-keys: ${{ matrix.os }}-py3.${{ matrix.python-minor-version }}-pip- - name: Cache ccache - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 + uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: C:\cygwin\home\runneradmin\.ccache key: Cygwin-py3.${{ matrix.python-minor-version }}-ccache-${{ hashFiles('src/*') }} restore-keys: Cygwin-py3.${{ matrix.python-minor-version }}-ccache- - name: Cache Matplotlib - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 + uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: | C:\cygwin\home\runneradmin\.cache\matplotlib diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index e73165c504d8..32a3f0439b7f 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: "3.x" - - uses: j178/prek-action@53276d8b0d10f8b6672aa85b4588c6921d0370cc # v2.0.1 + - uses: j178/prek-action@cbc2f23eb5539cf20d82d1aabd0d0ecbcc56f4e3 # v2.0.2 with: extra_args: --hook-stage manual --all-files diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 80fb7ed124fd..a3a9def4bd40 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -186,7 +186,7 @@ jobs: esac - name: Cache pip - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 + uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 if: startsWith(runner.os, 'Linux') with: path: ~/.cache/pip @@ -196,7 +196,7 @@ jobs: restore-keys: | ${{ matrix.os }}-py${{ matrix.python-version }}-pip- - name: Cache pip - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 + uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 if: startsWith(runner.os, 'macOS') with: path: ~/Library/Caches/pip @@ -204,7 +204,7 @@ jobs: restore-keys: | ${{ matrix.os }}-py${{ matrix.python-version }}-pip- - name: Cache ccache - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 + uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: | ~/.ccache @@ -212,7 +212,7 @@ jobs: restore-keys: | ${{ matrix.os }}-py${{ matrix.python-version }}-ccache- - name: Cache Matplotlib - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 + uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: | ~/.cache/matplotlib diff --git a/galleries/examples/ticks/date_formatters_locators.py b/galleries/examples/ticks/date_formatters_locators.py index 8d4922931323..bc5f1994cd74 100644 --- a/galleries/examples/ticks/date_formatters_locators.py +++ b/galleries/examples/ticks/date_formatters_locators.py @@ -100,3 +100,5 @@ def plot_axis(ax, locator=None, xmax='2002-02-01', fmt=None, formatter=None): # - `matplotlib.dates.DateFormatter` # - `matplotlib.dates.AutoDateFormatter` # - `matplotlib.dates.ConciseDateFormatter` +# +# .. tags:: component: ticks, purpose: reference diff --git a/galleries/examples/ticks/tick-formatters.py b/galleries/examples/ticks/tick-formatters.py index 543aec57e4d2..ecb0749a12d7 100644 --- a/galleries/examples/ticks/tick-formatters.py +++ b/galleries/examples/ticks/tick-formatters.py @@ -103,3 +103,6 @@ def fmt_two_digits(x, pos): axs2[6].xaxis.set_major_formatter(ticker.PercentFormatter(xmax=5)) plt.show() + +# %% +# .. tags:: component: ticks, purpose: reference diff --git a/galleries/examples/ticks/tick-locators.py b/galleries/examples/ticks/tick-locators.py index 6cf4afaf22d7..b203f75c1172 100644 --- a/galleries/examples/ticks/tick-locators.py +++ b/galleries/examples/ticks/tick-locators.py @@ -91,3 +91,5 @@ def setup(ax, title): # - `matplotlib.ticker.AutoLocator` # - `matplotlib.ticker.MaxNLocator` # - `matplotlib.ticker.LogLocator` +# +# .. tags:: component: ticks, purpose: reference diff --git a/lib/matplotlib/animation.py b/lib/matplotlib/animation.py index f20928d0abc2..c9f2d292f78f 100644 --- a/lib/matplotlib/animation.py +++ b/lib/matplotlib/animation.py @@ -853,10 +853,7 @@ def finish(self): class Animation: """ - A base class for Animations. - - This class is not usable as is, and should be subclassed to provide needed - behavior. + Abstract base class for Animations. .. note:: @@ -1421,7 +1418,7 @@ def resume(self): class TimedAnimation(Animation): """ - `Animation` subclass for time-based animation. + Abstract `Animation` subclass for time-based animation. A new frame is drawn every *interval* milliseconds.