-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrueExample.py
More file actions
71 lines (58 loc) · 1.31 KB
/
Copy pathtrueExample.py
File metadata and controls
71 lines (58 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#Define any number of functions written in python
def f(x):
return math.sin(x)
def g(x):
return math.cos(x)
def h(x):
return -math.sin(x)
def i(x):
return -math.cos(x)
#Put all the functions you want to plot into this python array
#Priority is given to later functions
functions = [f,g,h,i]
#Enable or disable truecolors
#True colors does not work in all environments
#To find out if your environment supports truecolors follow this link
#https://gist.github.com/XVilka/8346728
truecolors = True
#Put colors for each plot
#Available colors are:
#-magenta
#-red
#-orange
#-yellow
#-green
#-blue
#-cyan
#-grey
#-black
#Available with truecolors enabled:
#-purple
#-pink
#-brown
#Default for no color
colors = [red,blue,yellow,rainbow]
#State whether it should be in polar coordinates
#(true is polar false is cartesian)
polar = False
#Define the x size of each character
#(distance between tick marks on the graph)
x_size = 1/32.
#Define the y size of each character
y_size = 1/16.
#Define the start and end of the x partitions
x_min = 0
x_max = max_x
#Define the start and end of the y partitions
y_min = 0
y_max = max_y
#Turn autofit on or off
autofit = True
#State whether or not axes should be plotted
plot_axes = False
#For Polar plots
#Define the t partitions
t_size = .003
t_min = 0
#Angle in radians
t_max = 4*math.pi