Coverage for Adifpy/visualize/graph_function.py: 67%

6 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2022-11-22 19:44 -0500

1"""Implements visualization of the function and its derivative""" 

2import matplotlib 

3 

4 

5class GraphFunction(): 

6 """A display of the user's input function, or any other desired function in a graph.""" 

7 

8 def init(self): 

9 pass 

10 

11 def draw(self, fn): 

12 """Graph a function 

13  

14 Args: 

15 fn: a callable function 

16  

17 Returns: 

18 A matplotlib graph of the function 

19 """ 

20 pass