<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[graph clipping]]></title><description><![CDATA[<p>Hello,</p>
<p>I am new to quick data<br />
after playing a bit with the graphs, I realized it was not clipping data<br />
rfft ouput data in a array for instance, and I had to scale it down<br />
but what buggles me is that the rendered data goes way out of the graph rectangle with no clipping<br />
is there a way to correct this ? is it for speed reason that clipping tests are not done ?</p>
<p>thanks</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9828/graph-clipping</link><generator>RSS for Node</generator><lastBuildDate>Sun, 17 May 2026 15:33:36 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/9828.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 Feb 2016 15:31:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to graph clipping on Fri, 12 Feb 2016 15:31:48 GMT]]></title><description><![CDATA[<p>Hello,</p>
<p>I am new to quick data<br />
after playing a bit with the graphs, I realized it was not clipping data<br />
rfft ouput data in a array for instance, and I had to scale it down<br />
but what buggles me is that the rendered data goes way out of the graph rectangle with no clipping<br />
is there a way to correct this ? is it for speed reason that clipping tests are not done ?</p>
<p>thanks</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9828/graph-clipping</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9828/graph-clipping</guid><dc:creator><![CDATA[phil123456]]></dc:creator><pubDate>Fri, 12 Feb 2016 15:31:48 GMT</pubDate></item><item><title><![CDATA[Reply to graph clipping on Fri, 12 Feb 2016 16:04:08 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/phil123456">@phil123456</a> Hello Phil...<br />
You can clip your data with [clip] or for audio [clip~] before it gets to the graph, or if you have &quot;big&quot; data that you want to see properly you can change the size / range (scale) of your graph in it's &quot;right-click&quot; &quot;properties&quot;.....<br />
As a graph is a graphical representation of the data it is usually thought a good thing that you can see all of the data, and that adjusting the scale to suit the data is &quot;best?&quot;.........<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9828/graph-clipping/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9828/graph-clipping/2</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Fri, 12 Feb 2016 16:04:08 GMT</pubDate></item><item><title><![CDATA[Reply to graph clipping on Fri, 12 Feb 2016 16:55:08 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a>: It seems more likely that the graph and garray code was written first, without realizing that clipping was needed.</p>
<p>Consider:</p>
<ol>
<li>It's not just the dependent variable (i.e., y position) which can fall outside the bounds of the graph.  If you try to change the x range for a 100-element array to be between 50 and 60, for example, the array will extend well past the graph's horizontal boundaries, too.  So the dialog makes it seem like you can set the graph to view only a portion of an array when in fact that's not true.</li>
<li>Even for y-values, it's not just that they can be shown above or below the graph.  For extreme values they can fall well beyond the canvas viewport, causing the vertical scrollbar to shrink so small that it becomes difficult to navigate the canvas anymore.</li>
<li>Even if you clipped the garray to fall within the left and right bounds of the graph, data structure arrays on a GOP will continue to be a problem because the user can set the x value for each element independently.  But when they extend beyond the GOP you run into other problems, like failing to react to mouse events, or not getting redrawn properly.</li>
</ol>
<p>It's difficult to address a lot of this because garrays are entangled in the data structure code for [plot].  So a fix in one area is likely to have unforeseen side-effects for the other.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9828/graph-clipping/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9828/graph-clipping/3</guid><dc:creator><![CDATA[jancsika]]></dc:creator><pubDate>Fri, 12 Feb 2016 16:55:08 GMT</pubDate></item><item><title><![CDATA[Reply to graph clipping on Sat, 13 Feb 2016 20:20:04 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/jancsika">@jancsika</a> That is very probably true, but Pd was conceived (I believe) primarily for audio and composition, where audio should be confined to a +-1 y range (hence a new array has such limits).  Vanilla objects that &quot;shipped&quot; with the first releases have -resize flags for the x range, and data structures have setsize which can be automated to fit requirements.<br />
Of course that was necessary from the outset, as drawing millions of points will (as far as the user is concerned) &quot;hang&quot; Pd.<br />
On the y axis though this is unnecessary as there is only one point, and it &quot;should not&quot; be outside the +-1 range........... unless there is a bad mistake in the patch then working with audio &quot;y&quot; is unlikely to be much outside that range.<br />
It is true that arrays and graphs are not very easy or pretty.  An abstraction with auto-range and all the x-y ticks in place would be great, but you would end up with a graph that is constantly changing, as it cannot &quot;know&quot; what is going to be thrown at it........ and so you would have no idea what you are looking at.  We have to do some of the work ourselves, and we were just given the basic tools to do &quot;anything&quot; that we wish..........<br />
To view only a part of your data you would have to load only that part into the graph (using -skip and -maxsize)..... that is true.  A movable window would be a useful tool (project for tomorrow!).<br />
Is someone trying to build a daw again.......... there are very good free daws around already!<br />
David.<br />
(P.S. you can stop the drawing outside the graph by burying it under 2 levels of gop.)</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9828/graph-clipping/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9828/graph-clipping/4</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Sat, 13 Feb 2016 20:20:04 GMT</pubDate></item><item><title><![CDATA[Reply to graph clipping on Sat, 13 Feb 2016 10:07:44 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/phil123456">@phil123456</a> Thank you for the question........ it has forced me to spend some time with arrays.<br />
There is another message for graphing arrays that will be useful........ but it is not a &quot;clip&quot;...... and there are probably others......<br />
&quot;normalize&quot; for the y axis<br />
You can send the message [myarray normalize 2(<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9828/graph-clipping/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9828/graph-clipping/5</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Sat, 13 Feb 2016 10:07:44 GMT</pubDate></item></channel></rss>