Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

drawing angle circles for the inner parallelogram

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 !

drawing angle circles for the inner parallelogram

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 !

drawing angle circles the corners for the inner parallelogram

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 corners of g1 and add the alpha character into it.inner parallelogram in 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
#corners 
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 !

drawing the corners for the inner parallelogram

Hello,

i have the following plot, how do i draw the corners of the inner parallelogram in 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
#corners 
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 !

drawing the corners for the inner parallelogram

Hello,

i have the following plot, how do i draw the corners of the inner parallelogram in 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
#corners 
g += circle((0,1), 0.5) #alpha
#g arc((0.5,1), 1, sector=(pi*0,-pi/4+0.1))
g += arc((-2, 3), arc((0.5,1), 1, 2, pi/2)
sector=(pi*0,pi/4-0.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 !

drawing the corners for the inner parallelogram

Hello,

i have the following plot, how do i draw the corners of the inner parallelogram in 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
#corners 
g += arc((0.5,1), 1, sector=(pi*0,-pi/4+0.1))
g += arc((0.5,1), 1, sector=(pi*0,pi/4-0.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 !