Skip to content

Commit f28c204

Browse files
committed
fix rendering of warnings in mlab
1 parent 52714d8 commit f28c204

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

lib/matplotlib/mlab.py

+13-7
Original file line numberDiff line numberDiff line change
@@ -541,9 +541,11 @@ def stride_windows(x, n, noverlap=None, axis=0):
541541
Get all windows of x with length n as a single array,
542542
using strides to avoid data duplication.
543543
544-
.. warning:: It is not safe to write to the output array. Multiple
545-
elements may point to the same piece of memory, so modifying one value may
546-
change others.
544+
.. warning::
545+
546+
It is not safe to write to the output array. Multiple
547+
elements may point to the same piece of memory,
548+
so modifying one value may change others.
547549
548550
Call signature::
549551
@@ -603,9 +605,11 @@ def stride_repeat(x, n, axis=0):
603605
Repeat the values in an array in a memory-efficient manner. Array x is
604606
stacked vertically n times.
605607
606-
.. warning:: It is not safe to write to the output array. Multiple
607-
elements may point to the same piece of memory, so modifying one value may
608-
change others.
608+
.. warning::
609+
610+
It is not safe to write to the output array. Multiple
611+
elements may point to the same piece of memory, so
612+
modifying one value may change others.
609613
610614
Call signature::
611615
@@ -1605,7 +1609,9 @@ def longest_ones(x):
16051609
def prepca(P, frac=0):
16061610
"""
16071611
1608-
WARNING: this function is deprecated -- please see class PCA instead
1612+
.. warning::
1613+
1614+
This function is deprecated -- please see class PCA instead
16091615
16101616
Compute the principal components of *P*. *P* is a (*numVars*,
16111617
*numObs*) array. *frac* is the minimum fraction of variance that a

0 commit comments

Comments
 (0)