<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Graph Builder &amp;gt; Add Graphics script &amp;amp;gt; Add Customize Shape, Icons or Picture? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Graph-Builder-gt-Add-Graphics-script-amp-gt-Add-Customize-Shape/m-p/377537#M62745</link>
    <description>&lt;P&gt;path() function?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="Bezier interpolation" uid="257795" url="https://community.jmp.com/t5/Discussions/Bezier-interpolation/m-p/257795#U257795" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp; and &lt;LI-MESSAGE title="Bezier Tree using Path()" uid="271193" url="https://community.jmp.com/t5/Uncharted/Bezier-Tree-using-Path/m-p/271193#U271193" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt; (and the scripting index probably has simpler non-&lt;SPAN class="module__title__link"&gt;Bézier&lt;/SPAN&gt; examples.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also the column property UseForMarker works on picture columns, but it sounds like you might not have a data point for each marker.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the only way you'll get pictures or icons without UseForMarker is to make separate picture segs for each marker. They can be positioned, seg-by-seg.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Apr 2021 17:39:35 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2021-04-19T17:39:35Z</dc:date>
    <item>
      <title>Graph Builder &gt; Add Graphics script &amp;gt; Add Customize Shape, Icons or Picture?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-gt-Add-Graphics-script-amp-gt-Add-Customize-Shape/m-p/377530#M62744</link>
      <description>&lt;P&gt;Hi JMP Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similarly to the Graphics Script commands Circle, Oval, and Rectangle, is it possible to insert in a FrameBox customized shapes, icons, or, pictures?&lt;/P&gt;
&lt;P&gt;Of note, I'm &lt;U&gt;&lt;STRONG&gt;not&lt;/STRONG&gt; &lt;/U&gt;looking for customize data point markers.&lt;/P&gt;
&lt;P&gt;Here is a snippet of the type of graphics script I'm working with (gb is a graph builder heat map) where I would like to replace the Circle with a customized shape:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;	gbr = report (gb);
	fb = gbr [FrameBox (1)];
	
	fb &amp;lt;&amp;lt; add graphics script (
		Fill color (black);
		
		For (i = 0, i &amp;lt;= 24, i++,
			For (j = 0.5, j &amp;lt;= 7, j = j+2,
				r = (i*8) + (j+0.5);
				s = column (dt,"SIZE FDR") [r] / 8;
				if (s &amp;lt; 0.02, s = 0.02);
				circle ({i,j}, s, "FILL")
			 )	
		);
		
		
	);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you for your help.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:13:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-gt-Add-Graphics-script-amp-gt-Add-Customize-Shape/m-p/377530#M62744</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2023-06-11T11:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder &gt; Add Graphics script &amp;gt; Add Customize Shape, Icons or Picture?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-gt-Add-Graphics-script-amp-gt-Add-Customize-Shape/m-p/377537#M62745</link>
      <description>&lt;P&gt;path() function?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="Bezier interpolation" uid="257795" url="https://community.jmp.com/t5/Discussions/Bezier-interpolation/m-p/257795#U257795" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp; and &lt;LI-MESSAGE title="Bezier Tree using Path()" uid="271193" url="https://community.jmp.com/t5/Uncharted/Bezier-Tree-using-Path/m-p/271193#U271193" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt; (and the scripting index probably has simpler non-&lt;SPAN class="module__title__link"&gt;Bézier&lt;/SPAN&gt; examples.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also the column property UseForMarker works on picture columns, but it sounds like you might not have a data point for each marker.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the only way you'll get pictures or icons without UseForMarker is to make separate picture segs for each marker. They can be positioned, seg-by-seg.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 17:39:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-gt-Add-Graphics-script-amp-gt-Add-Customize-Shape/m-p/377537#M62745</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-04-19T17:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder &gt; Add Graphics script &amp;gt; Add Customize Shape, Icons or Picture?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-gt-Add-Graphics-script-amp-gt-Add-Customize-Shape/m-p/377585#M62749</link>
      <description>Dear Craige,&lt;BR /&gt;Thank you for you suggestion, I will look into this method. However, I may not have provided enough details to get the feedback I'm specifically looking for.&lt;BR /&gt;In the specific case I'm working on, I'm adding shapes to a heatmap across cells to denote the significance of the contrast between these. So far, everything works as planned using Circles but I'm now looking for doing the same thing with another shape such a star or another custom shape. &lt;BR /&gt;Best regards,&lt;BR /&gt;TS</description>
      <pubDate>Sun, 18 Apr 2021 16:04:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-gt-Add-Graphics-script-amp-gt-Add-Customize-Shape/m-p/377585#M62749</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2021-04-18T16:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder &gt; Add Graphics script &amp;gt; Add Customize Shape, Icons or Picture?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-gt-Add-Graphics-script-amp-gt-Add-Customize-Shape/m-p/377598#M62753</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="N-pointed stars" style="width: 553px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/32159i4F45630B98583499/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="N-pointed stars" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;N-pointed stars&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;makestar = Function( {x, y, npoints, inside, outside},
	{p = J( 2 * npoints, 3, . ), angle, i, move = 1, draw = 2},
	For( i = 1, i &amp;lt; N Rows( p ), 0,
		angle = 2 * Pi() * i / N Rows( p );
		p[i, 1] = x + Sin( angle ) * inside; // sin and cos are reversed here to
		p[i, 2] = y + Cos( angle ) * inside; // make the point be at the top.
		p[i, 3] = If( i == 1, move, draw ); // swap sin/cos for point at left.
		i += 1;
		angle = 2 * Pi() * i / N Rows( p );
		p[i, 1] = x + Sin( angle ) * outside; // ditto
		p[i, 2] = y + Cos( angle ) * outside;
		p[i, 3] = If( i == N Rows( p ), -draw, draw );
		i += 1;
	);
	p; // return
);

New Window( "Example",
	gb = Graph Box(
		xaxis( Show Major Grid( 1 ) ),
		yaxis( Show Major Grid( 1 ) ),
		framesize( 500, 500 ),
		Pen Color( "red" );
		Pen Size( 3 );
		Fill Color( "blue" );
		npoints = 3; // each star gets more points below
		For( xx = 20, xx &amp;lt;= 80, xx += 20,
			For( yy = 20, yy &amp;lt;= 80, yy += 20, 
				// the inside/outside ratio needs to change with more points...
				p = makestar( xx, yy, npoints, 2 + npoints / 4, 8 );
				Path( p, 1 ); // blue solid fill
				Path( p, 0 ); // red outline
				npoints += 1;
			)
		);
	)
);

// move the grid lines above the stars
grid = gb[framebox( 1 )] &amp;lt;&amp;lt; find seg( SegPlaceholder( 1 ) );
// grid is the original, below the stars
gb[framebox( 1 )] &amp;lt;&amp;lt; appendseg( grid ); // makes a copy above
// probably not needed...they are on top of each other...
grid &amp;lt;&amp;lt; delete; // delete the original from below&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Apr 2021 17:44:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-gt-Add-Graphics-script-amp-gt-Add-Customize-Shape/m-p/377598#M62753</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-04-18T17:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder &gt; Add Graphics script &amp;gt; Add Customize Shape, Icons or Picture?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-gt-Add-Graphics-script-amp-gt-Add-Customize-Shape/m-p/377850#M62766</link>
      <description>&lt;P&gt;There is also a &lt;EM&gt;PixelPath()&lt;/EM&gt; function. If you run into performance issues, with 1000s of points perhaps, PixelPath allows repositioning, sizing, and rotating an existing path. (I don't see how to do that with &lt;EM&gt;Path()&lt;/EM&gt;.) You could pre-create the star(s) once, then re-use them with PixelPath.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Path() and PixelPath() behave differently when you stretch the graph: Path draws in user coordinates and the drawing stretches to fit the current axes. PixelPath draws in pixels and the symbols don't change size.&lt;/P&gt;&lt;P&gt;The scripting index has an example for PixelPath; use PixelOrigin(x,y) and leave h,v at 0,0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 14:54:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-gt-Add-Graphics-script-amp-gt-Add-Customize-Shape/m-p/377850#M62766</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-04-19T14:54:55Z</dc:date>
    </item>
  </channel>
</rss>

