Fixed layout
This commit is contained in:
parent
2c65f8c59d
commit
1c4cad6754
42
README.md
42
README.md
@ -9,7 +9,7 @@ graph.py is independent and can be used even without the graphical interface.
|
||||
You can save the plot in svg format via [canvas2svg] (Link: http://wm.ite.pl/proj/canvas2svg/index.html).
|
||||
|
||||
### Instructions
|
||||
graph.py:
|
||||
**graph.py**:
|
||||
|
||||
* Import the module graph.py.
|
||||
`import graph`
|
||||
@ -22,35 +22,41 @@ graph.py:
|
||||
|
||||
`Graph()` is subclass of turtle.Pen so you can use all the methods inherited.
|
||||
|
||||
plotter.py:
|
||||
**plotter.py**:
|
||||
|
||||
Normal:
|
||||
**Normal**:
|
||||
|
||||
* Enter the function in the first text box. Between the variable and the coefficients a * is not necessary.
|
||||
Use `^` for exponentiation and `|` for the absolute value |f(x)|.
|
||||
eg |cos(x)*1/2x|
|
||||
* Enter the range of the function to print in the second box.
|
||||
eg -10, 10
|
||||
* Enter the color in the third box. A string with the name of the color, a tuple that contains RGB numbers, #RGB color in hex.
|
||||
eg #a1a1a1
|
||||
`eg |cos(x)*1/2x|`
|
||||
|
||||
Defined by points:
|
||||
* Enter the range of the function to print in the second box.
|
||||
`eg -10, 10`
|
||||
|
||||
* Enter the color in the third box. A string with the name of the color, a tuple that contains RGB numbers, #RGB color in hex.
|
||||
`eg #a1a1a1`
|
||||
|
||||
**Points**:
|
||||
|
||||
* Insert the points of the function into a tuple of the form (x1, y2), (x2, y2).
|
||||
eg (0,0), (1,2), (2,4), (3,-3)
|
||||
* Enter the range of the function to print the second box.
|
||||
eg -10,10
|
||||
* Enter the color in the third box. A string with the name of the color, a tuple that contains RGB numbers, #RGB color in hex.
|
||||
eg #a1a1a1
|
||||
`eg (0,0), (1,2), (2,4), (3,-3)`
|
||||
|
||||
Piecewise:
|
||||
* Enter the range of the function to print the second box.
|
||||
`eg -10,10`
|
||||
|
||||
* Enter the color in the third box. A string with the name of the color, a tuple that contains RGB numbers, #RGB color in hex.
|
||||
`eg #a1a1a1`
|
||||
|
||||
**Piecewise**:
|
||||
|
||||
* Enter the traits in a tuple type [f1(x), (range)], [f2(x), (range)].
|
||||
eg [ (-x), (-100,0)], [(x), (0,100)]
|
||||
`eg [(-x), (-100,0)], [(x), (0,100)]`
|
||||
|
||||
* Enter the range of the function to print the second box.
|
||||
eg -10.10
|
||||
`eg -10.10`
|
||||
|
||||
* Enter the color in the third box. A string with the name of the color, a tuple that contains RGB numbers or #RGB color in hex.
|
||||
eg #a1a1a1
|
||||
`eg #a1a1a1`
|
||||
|
||||
You can use all the functions and constants defined in `math` module.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user