Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Jose Luis Lopez19,179 Points
coordinates 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.
Chris FreemanTreehouse Moderator 68,167 Points
The 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)