Y coordinate problem

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
linuxguy
Newbie
Posts: 2
Joined: Tue Dec 22, 2009 1:10 pm

Y coordinate problem

Post by linuxguy »

hello everyone.
I am pretty new to qbasic. I am writing a simple program to graph up to a polynomial and I've got it working except for one thing. My Y coordinate is upside down. I know this is because qbasic reverses the Y coordinate. I there a way to change it so that the Y increases as you move from the bottom to the top of the screen? (like a normal Cartesian plane). Thanks for putting up with a newbie question. :D
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Post by burger2227 »

NO, but your brain can adapt the code for it. Try negative increments.
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
linuxguy
Newbie
Posts: 2
Joined: Tue Dec 22, 2009 1:10 pm

Post by linuxguy »

Thanks! The negative increments worked perfectly. I feel stupid now for not realizing something that obvious, but oh well. :D
Post Reply