Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJose Luis Lopez
19,179 Pointscoordinates plane python
hello team treehouse community.
I'm currently working on a python program for my class CSC 110. The professor want us to draw a x, y axes with black and a background grid on blue. so my question is,
what can I do so the blue lines wont over draw on top of the x, y black axes. just the one in the center. I was thinking on a if statement but I'm not sure.
1 Answer
Chris Freeman
Treehouse Moderator 68,423 PointsThe drawing order may answer your question. Draw the horizontal and vertical lines first, then draw the black axis. So change the order of the last three lines:
horizontal_lines(600)
vertical_lines(600)
draw_axis(300)
Jose Luis Lopez
19,179 PointsJose Luis Lopez
19,179 Points[MOD: corrected ```python formatting -cf]