Hello,
i have the following plot, how do i draw a circle(angle) that goes from h2 to g1 and stops drawing at the collision of g1 and add the alpha character into it.
If i did something overcomplicated just improve my code ( i'm a beginner).
g = Graphics()
g += text('g1', (10,4.5))
g += plot(2/5*x + 1,(x,-4,10)) #g1
#gradient triangle
g += line([(0,1), (5,1)], rgbcolor=('#00c736'))
g += text('kw = 5', (2.5,0.5), rgbcolor=('#00c736'))
g += line([(5,1), (5,3)],rgbcolor=('#f6a200'))
g += text('ks = 2', (5.5,2), rgbcolor=('#f6a200'))
g += text('g2', (10,1.5))
g += plot(2/5*x - 2,(x,-4, 10)) #g2
g += text('h1', (10,-1.5))
g += plot(-1/2*x+1,(x,-4, 10)) #h1
g += text('h2', (10,-4.5))
g += plot(-1/2*x+4,(x,-4, 10)) #h2
#angles
g += circle((0,1), 0.5) #alpha
#g += arc((-2, 3), 1, 2, pi/2)
g.show()
can't upload a picture sorry insufficient karma :(.
and how do i change the steps at the x and y -axis to 1.
thanks in advance !