File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed 
docs/tutorials/intermediate Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 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 
1313from  cycler import  cycler
1414import  numpy as  np
1515import  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 
2121x =  np.linspace(0 , 2  *  np.pi, 50 )
2222offsets =  np.linspace(0 , 2  *  np.pi, 4 , endpoint = False )
2323yy =  np.transpose([np.sin(x +  phi) for  phi in  offsets])
2424``` 
2525
26- Now yy has shape 
26+ 现在你已经成型了 
2727
2828``` python 
2929print (yy.shape)
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments