Skip to content

Commit e85e017

Browse files
committed
update.
1 parent c02204f commit e85e017

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/tutorials/intermediate/color_cycle.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@
44

55
**注意:** 可以在[此处](http://matplotlib.org/cycler/)找到有关cycler API的更完整文档。
66

7-
This example demonstrates two different APIs:
7+
此示例演示了两种不同的API:
88

9-
1. Setting the default rc parameter specifying the property cycle. This affects all subsequent axes (but not axes already created).
10-
1. Setting the property cycle for a single pair of axes.
9+
1. 设置指定属性循环的默认rc参数。 这会影响所有后续轴(但不会影响已创建的轴)。
10+
1. 设置一对轴的属性循环。
1111

1212
```python
1313
from cycler import cycler
1414
import numpy as np
1515
import matplotlib.pyplot as plt
1616
```
1717

18-
First we'll generate some sample data, in this case, four offset sine curves.
18+
首先,我们将生成一些样本数据,在本例中为四条偏移正弦曲线。
1919

2020
```python
2121
x = np.linspace(0, 2 * np.pi, 50)
2222
offsets = np.linspace(0, 2 * np.pi, 4, endpoint=False)
2323
yy = np.transpose([np.sin(x + phi) for phi in offsets])
2424
```
2525

26-
Now yy has shape
26+
现在你已经成型了
2727

2828
```python
2929
print(yy.shape)

0 commit comments

Comments
 (0)