marksfuncs 0.1__tar.gz → 0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,8 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: marksfuncs
3
- Version: 0.1
3
+ Version: 0.2
4
4
  Summary: Graph many mathematical functions
5
+ Home-page: https://github.com/marc1fino/marksfuncs
5
6
  Author: mark. (Marc Pérez)
6
7
  Author-email: <marcperezcarrasco2010@gmail.com>
7
8
  License: MIT
@@ -25,29 +26,26 @@ Developed by Marc Pérez (c) 2024
25
26
 
26
27
  ## Examples of How To Use
27
28
 
28
- Watch a function's parameters
29
+ Show A Grafic
29
30
 
30
31
  ```python
31
- from marksfuncs import Linear
32
-
33
- # For Printing Parameters In Console
34
- print(Linear())
32
+ from marksfuncs import Exponential
35
33
 
36
- # You Can Add It In Anything That Supports An String
37
- message = "I like bananas "
38
- print(message+Linear())
34
+ Exponential(a=4, b=2, x_values_list=[-5, 5, 100])
39
35
  ```
40
36
 
41
- Make The Grafic Of Your Function
37
+ Convert The Grafic to a Image
42
38
 
43
39
  ```python
44
- from marksfuncs import Exponential
40
+ from marksfuncs import Linear
41
+ from PIL import Image
45
42
 
46
- # Printing A Message When The Grafic Finished Showing
47
- print(Exponential(a=6, b=5, x_values_list=[-5, 5, 100]))
43
+ # Create An Io Img Bytes
44
+ img_buffer = Linear(m=3, b=5, x_values_list=[-5, 5, 100]).image()
48
45
 
49
- # Only Show The Grafic
50
- Exponential(a=4, b=2, x_values_list=[-5, 5, 100])
46
+ # Will Show The Function Grafic As A Png File
47
+ img = Image.open(img_buffer)
48
+ img.show(title="Grafic Image")
51
49
  ```
52
50
 
53
51
  Graphics Explanation
@@ -6,29 +6,26 @@ Developed by Marc Pérez (c) 2024
6
6
 
7
7
  ## Examples of How To Use
8
8
 
9
- Watch a function's parameters
9
+ Show A Grafic
10
10
 
11
11
  ```python
12
- from marksfuncs import Linear
13
-
14
- # For Printing Parameters In Console
15
- print(Linear())
12
+ from marksfuncs import Exponential
16
13
 
17
- # You Can Add It In Anything That Supports An String
18
- message = "I like bananas "
19
- print(message+Linear())
14
+ Exponential(a=4, b=2, x_values_list=[-5, 5, 100])
20
15
  ```
21
16
 
22
- Make The Grafic Of Your Function
17
+ Convert The Grafic to a Image
23
18
 
24
19
  ```python
25
- from marksfuncs import Exponential
20
+ from marksfuncs import Linear
21
+ from PIL import Image
26
22
 
27
- # Printing A Message When The Grafic Finished Showing
28
- print(Exponential(a=6, b=5, x_values_list=[-5, 5, 100]))
23
+ # Create An Io Img Bytes
24
+ img_buffer = Linear(m=3, b=5, x_values_list=[-5, 5, 100]).image()
29
25
 
30
- # Only Show The Grafic
31
- Exponential(a=4, b=2, x_values_list=[-5, 5, 100])
26
+ # Will Show The Function Grafic As A Png File
27
+ img = Image.open(img_buffer)
28
+ img.show(title="Grafic Image")
32
29
  ```
33
30
 
34
31
  Graphics Explanation