<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Creating a PHP Graphing Calculator</title>
	<atom:link href="http://www.toniwestbrook.com/archives/68/feed" rel="self" type="application/rss+xml" />
	<link>http://www.toniwestbrook.com/archives/68</link>
	<description>Sharing Software Development Knowledge With You</description>
	<lastBuildDate>Tue, 02 Aug 2011 18:55:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Toni</title>
		<link>http://www.toniwestbrook.com/archives/68#comment-91228</link>
		<dc:creator>Toni</dc:creator>
		<pubDate>Sun, 30 Jan 2011 02:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.toniwestbrook.com/archives/68#comment-91228</guid>
		<description>You&#039;re almost there - I&#039;m about to update the code above to make use of a scaling global variable, where scale &gt; 1 zooms in, and scale &lt; 1 zooms out.  I think it&#039;s right, its been a while since I worked on this so I might have missed something.</description>
		<content:encoded><![CDATA[<p>You&#8217;re almost there &#8211; I&#8217;m about to update the code above to make use of a scaling global variable, where scale > 1 zooms in, and scale < 1 zooms out.  I think it&#8217;s right, its been a while since I worked on this so I might have missed something.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ice</title>
		<link>http://www.toniwestbrook.com/archives/68#comment-91202</link>
		<dc:creator>Ice</dc:creator>
		<pubDate>Fri, 28 Jan 2011 01:48:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.toniwestbrook.com/archives/68#comment-91202</guid>
		<description>I&#039;m interested in expanding the x and y ranges of your graph...

Getting the additional ticks on the y and x axis is easy:
for ($lcv = 0 ; $lcv &lt; $GLOBALS[&#039;width&#039;]/2*$scale; $lcv += 50)
for ($lcv = 0 ; $lcv &lt; $GLOBALS[&#039;height&#039;]/2*$scale; $lcv += 50)

&amp; Converting functions:
pixelsToCart()
$passX = $scale*$passX - $GLOBALS[&#039;width&#039;] / 2;
$passY = $scale*$passY + $GLOBALS[&#039;height&#039;] / 2;

cartToPixels()
$passX = $GLOBALS[&#039;width&#039;] / 2 - $scale*$passX;
$passY = $GLOBALS[&#039;width&#039;] / 2 + $scale*$passY;

However, the graph only plots to the original stopping and starting area of the default graph.</description>
		<content:encoded><![CDATA[<p>I&#8217;m interested in expanding the x and y ranges of your graph&#8230;</p>
<p>Getting the additional ticks on the y and x axis is easy:<br />
for ($lcv = 0 ; $lcv &lt; $GLOBALS[&#039;width&#039;]/2*$scale; $lcv += 50)<br />
for ($lcv = 0 ; $lcv &lt; $GLOBALS[&#039;height&#039;]/2*$scale; $lcv += 50)</p>
<p>&amp; Converting functions:<br />
pixelsToCart()<br />
$passX = $scale*$passX &#8211; $GLOBALS[&#039;width&#039;] / 2;<br />
$passY = $scale*$passY + $GLOBALS[&#039;height&#039;] / 2;</p>
<p>cartToPixels()<br />
$passX = $GLOBALS[&#039;width&#039;] / 2 &#8211; $scale*$passX;<br />
$passY = $GLOBALS[&#039;width&#039;] / 2 + $scale*$passY;</p>
<p>However, the graph only plots to the original stopping and starting area of the default graph.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua</title>
		<link>http://www.toniwestbrook.com/archives/68#comment-71670</link>
		<dc:creator>Joshua</dc:creator>
		<pubDate>Wed, 09 Dec 2009 08:00:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.toniwestbrook.com/archives/68#comment-71670</guid>
		<description>I was looking for such script for ages. Thank you.</description>
		<content:encoded><![CDATA[<p>I was looking for such script for ages. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toni</title>
		<link>http://www.toniwestbrook.com/archives/68#comment-26298</link>
		<dc:creator>Toni</dc:creator>
		<pubDate>Tue, 16 Dec 2008 05:11:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.toniwestbrook.com/archives/68#comment-26298</guid>
		<description>Thanks!  The code above doesn&#039;t offer changing the range of the plot, but there are some comments in the cartToPixels and pixelsToCart functions that describe using a coefficient to alter the range plotted.  By adding a user defined coefficient to each calculation in those two functions, you could zoom in/out on the graph pretty easily.</description>
		<content:encoded><![CDATA[<p>Thanks!  The code above doesn&#8217;t offer changing the range of the plot, but there are some comments in the cartToPixels and pixelsToCart functions that describe using a coefficient to alter the range plotted.  By adding a user defined coefficient to each calculation in those two functions, you could zoom in/out on the graph pretty easily.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HaXiT</title>
		<link>http://www.toniwestbrook.com/archives/68#comment-25794</link>
		<dc:creator>HaXiT</dc:creator>
		<pubDate>Sat, 13 Dec 2008 01:12:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.toniwestbrook.com/archives/68#comment-25794</guid>
		<description>Awesome script! Is there any way to reduce the range in which it plots the graph?</description>
		<content:encoded><![CDATA[<p>Awesome script! Is there any way to reduce the range in which it plots the graph?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

