<?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: Making Bezier Curves using SVG Path Strings in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Making-Bezier-Curves-using-SVG-Path-Strings/m-p/523299#M74808</link>
    <description>&lt;P&gt;No Jarmo, I didn't use the eval/insert. I'll give it a go later when I get a minute.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As an aside, I didn't need to make four Bezier Arcs to generate a circle. SVG has an 'A' (Arc) tag than can draw one with far less characters....and is much easier to comprehend as it doesn't need to generate any Bezier 'Control points'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did need to add the 'double 0' at the end of the string to get it to work though as with the other example above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;"M -150 0 a 150 150 0 1 0 300 0 a 150 150 0 1 0 -300 00"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Comparing SVG ARC, SVG Bezier Curves and the native 'Circle' Function in JMP they all approximate pretty well.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;circleArcSyntax = "M -150 0 a 150 150 0 1 0 300 0 a 150 150 0 1 0 -300 00";
circleCurveSyntax = "M 0  150 C  82.8  150  150  82.8  150 00 M 0 -150 C  82.8 -150  150 -82.8  150 00 M 0 -150 C -82.8 -150 -150 -82.8 -150 00 M 0  150 C -82.8  150 -150  82.8 -150 00";
New Window( "JMP Circle Layout Example",
	Graph Box(
		frameSize( 500, 500 ), 
		xScale(-175,175),
		yScale(-175,175),
		
		penSize(20);
		penColor("yellow");
		path(circleArcSyntax, 0);
		
		penColor("red");
		penSize(10);
		path(circleCurveSyntax, 0);
		
		penSize(2);
		penColor("black");
		circle({0,0}, 150);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;SVG ARC = Yellow&lt;/P&gt;&lt;P&gt;SVG 4-segment Bezier Curve = Red&lt;/P&gt;&lt;P&gt;JMP 'Circle' Function = Black.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thickey_0-1658228616741.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44121i75C812CD4534D60C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="thickey_0-1658228616741.png" alt="thickey_0-1658228616741.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jul 2022 11:06:36 GMT</pubDate>
    <dc:creator>thickey</dc:creator>
    <dc:date>2022-07-19T11:06:36Z</dc:date>
    <item>
      <title>Making Bezier Curves using SVG Path Strings</title>
      <link>https://community.jmp.com/t5/Discussions/Making-Bezier-Curves-using-SVG-Path-Strings/m-p/522662#M74736</link>
      <description>&lt;P&gt;I have two SVG Paths which are constructed in the same way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;a = "M 10 60 C 20 80 40 80 50 60";
b = "M 0 -150 C 82.8 -150 150 -82.8 150 0";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;A quick Plot of 'a' shows the following arc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "JMP 8PFU Layout Example",
	Graph Box(
		frameSize( 500, 500 ), 
		xScale(-175,175),
		yScale(-175,175),
		penColor("blue");
		penSize(2);
		path(a, 0);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thickey_0-1658143323267.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44067i84F03B073430F696/image-size/medium?v=v2&amp;amp;px=400" role="button" title="thickey_0-1658143323267.png" alt="thickey_0-1658143323267.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However when I try to plot 'b' I get an error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;DisplayBox[EvalContextBox]
argument value is invalid in access or evaluation of 'Path' , Bad Argument( b ), Path/*###*/(b, 0)&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "JMP 8PFU Layout Example",
	Graph Box(
		frameSize( 500, 500 ), 
		xScale(-175,175),
		yScale(-175,175),
		penColor("blue");
		penSize(2);
		path(combined, 0);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If I add a 'closing' character 'z' in the curve it draws the segment, returning the 'line' to the origin point. This works but is not what I want - I just want the arc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;b = "M 0 -150 C 82.8 -150 150 -82.8 150 0 z";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thickey_1-1658143465249.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44068iB52B29F269482AF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="thickey_1-1658143465249.png" alt="thickey_1-1658143465249.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My Ultimate goal is to combine 4 arcs to approximate a circle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;tr = "M 0  150 C  82.8  150  150  82.8  150 0 z";
br = "M 0 -150 C  82.8 -150  150 -82.8  150 0 z";
bl = "M 0 -150 C -82.8 -150 -150 -82.8 -150 0 z";
tl = "M 0  150 C -82.8  150 -150  82.8 -150 0 z";

combined = "M 0  150 C  82.8  150  150  82.8  150 0 z M 0 -150 C  82.8 -150  150 -82.8  150 0 z M 0 -150 C -82.8 -150 -150 -82.8 -150 0 z M 0  150 C -82.8  150 -150  82.8 -150 0 z";&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "JMP 8PFU Layout Example",
	Graph Box(
		frameSize( 500, 500 ), 
		xScale(-175,175),
		yScale(-175,175),
		penColor("blue");
		penSize(2);
		path(combined, 0);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thickey_2-1658143616070.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44069iA8676796D831F442/image-size/medium?v=v2&amp;amp;px=400" role="button" title="thickey_2-1658143616070.png" alt="thickey_2-1658143616070.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, when I remove the 'z' character I get the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For completeness, I tried this combined string in a web-browser with the 'z' characters removed and it rendered correctly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;svg&lt;/SPAN&gt; &lt;SPAN&gt;viewBox&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"-175 -175 350 350"&lt;/SPAN&gt; &lt;SPAN&gt;style&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"border: green solid;"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;path&lt;/SPAN&gt; &lt;SPAN&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"Wrf_Edge"&lt;/SPAN&gt; &lt;SPAN&gt;stroke&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"black"&lt;/SPAN&gt; &lt;SPAN&gt;fill&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"none"&lt;/SPAN&gt; &lt;SPAN&gt;stroke-width&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"1"&lt;/SPAN&gt; &lt;SPAN&gt;d&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"M 0 &amp;nbsp;150 C &amp;nbsp;82.8 &amp;nbsp;150 &amp;nbsp;150 &amp;nbsp;82.8 &amp;nbsp;150 0 M 0 -150 C &amp;nbsp;82.8 -150 &amp;nbsp;150 -82.8 &amp;nbsp;150 0 M 0 -150 C -82.8 -150 -150 -82.8 -150 0 M 0 &amp;nbsp;150 C -82.8 &amp;nbsp;150 -150 &amp;nbsp;82.8 -150 0"&lt;/SPAN&gt;&lt;SPAN&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;svg&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thickey_4-1658143872338.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44071i33872B0813E591C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="thickey_4-1658143872338.png" alt="thickey_4-1658143872338.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 20:51:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Making-Bezier-Curves-using-SVG-Path-Strings/m-p/522662#M74736</guid>
      <dc:creator>thickey</dc:creator>
      <dc:date>2023-06-10T20:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Making Bezier Curves using SVG Path Strings</title>
      <link>https://community.jmp.com/t5/Discussions/Making-Bezier-Curves-using-SVG-Path-Strings/m-p/522679#M74738</link>
      <description>&lt;P&gt;For me this seems to work fine, using JMP16.2 Pro and Windows 10 (version related?)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

tr = "M 0  150 C  82.8  150  150  82.8  150 0";
br = "M 0 -150 C  82.8 -150  150 -82.8  150 0";
bl = "M 0 -150 C -82.8 -150 -150 -82.8 -150 0";
tl = "M 0  150 C -82.8  150 -150  82.8 -150 0";

New Window("JMP 8PFU Layout Example",
	Graph Box(
		frameSize(500, 500),
		X Scale(-175, 175),
		Y Scale(-175, 175),
		Pen Size(2);
		Pen Color("blue");
		Path(tr, 0);
		Pen Color("red");
		Path(br, 0);
		Pen Color("green");
		Path(tl, 0);
		Pen Color("red");
		Path(bl, 0);
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1658144861276.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44072iF14F8A3FFA3A83B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1658144861276.png" alt="jthi_0-1658144861276.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(with Graph Box I would use Eval Insert so the Customize will show correct information on right click menu)&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 11:50:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Making-Bezier-Curves-using-SVG-Path-Strings/m-p/522679#M74738</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-07-18T11:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Making Bezier Curves using SVG Path Strings</title>
      <link>https://community.jmp.com/t5/Discussions/Making-Bezier-Curves-using-SVG-Path-Strings/m-p/522745#M74744</link>
      <description>&lt;P&gt;Thats weird Jarmo. I'm using 15.2.0. Did you try it using the combined string?&lt;/P&gt;&lt;P&gt;Ultimately, I'll be making many SVG strings and saving them in a DB Table for app developers to use. Incidentally this circle represents the circumference of a wafer. As a result I need just one string which works for all development environments. For JMP applications I do not want to use four distinct arcs, but rather just one string to avoid duplication in the DB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this makes sense.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, I literally re-started JMP and copied/Pasted you code into a script with no modification and it still creates this error. I'll try another JMP version.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thickey_0-1658151883988.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44077i655D13A6C1DDB85F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="thickey_0-1658151883988.png" alt="thickey_0-1658151883988.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 13:45:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Making-Bezier-Curves-using-SVG-Path-Strings/m-p/522745#M74744</guid>
      <dc:creator>thickey</dc:creator>
      <dc:date>2022-07-18T13:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Making Bezier Curves using SVG Path Strings</title>
      <link>https://community.jmp.com/t5/Discussions/Making-Bezier-Curves-using-SVG-Path-Strings/m-p/522761#M74747</link>
      <description>&lt;P&gt;I did try it also with the combined string (copy pasted from the browser snippet), worked fine:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);


New Window("JMP 8PFU Layout Example",
	Graph Box(
		frameSize(500, 500),
		X Scale(-175, 175),
		Y Scale(-175, 175),
		Pen Size(2);
		Pen Color("blue");
		Path("M 0  150 C  82.8  150  150  82.8  150 0 M 0 -150 C  82.8 -150  150 -82.8  150 0 M 0 -150 C -82.8 -150 -150 -82.8 -150 0 M 0  150 C -82.8  150 -150  82.8 -150 0", 0);
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1658152818180.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44082i5E61890A65505E29/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1658152818180.png" alt="jthi_0-1658152818180.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried modifying the Customize part of the Graph Box? Or maybe using Eval Insert to add the string to Path() (not sure why it would be needed though...)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1658152887714.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44083i1ABFAED4C2C4318B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1658152887714.png" alt="jthi_1-1658152887714.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 14:02:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Making-Bezier-Curves-using-SVG-Path-Strings/m-p/522761#M74747</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-07-18T14:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Making Bezier Curves using SVG Path Strings</title>
      <link>https://community.jmp.com/t5/Discussions/Making-Bezier-Curves-using-SVG-Path-Strings/m-p/522764#M74749</link>
      <description>&lt;P&gt;Hmmm, it looks like JMP (only tested on 15.2.0) doesn't like the last character if it is a '0'. If I set it to another value or 'double-up' on the '0' making it '00' then it works fine. so the string:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;CODE class=" language-jsl"&gt;M 0 150 C 82.8 150 150 82.8 150 0&lt;/CODE&gt;"&lt;/P&gt;&lt;P&gt;becomes&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-jsl"&gt;"M 0 150 C 82.8 150 150 82.8 150 00"&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;circle = "M 0  150 C  82.8  150  150  82.8  150 00 M 0 -150 C  82.8 -150  150 -82.8  150 00 M 0 -150 C -82.8 -150 -150 -82.8 -150 00 M 0  150 C -82.8  150 -150  82.8 -150 00";
New Window( "JMP Layout Example",
	Graph Box(
		frameSize( 500, 500 ), 
		xScale(-175,175),
		yScale(-175,175),
		penColor("blue");
		penSize(2);
		path(circle, 0);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thickey_0-1658153136728.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44084i5AC31ABCA581444B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="thickey_0-1658153136728.png" alt="thickey_0-1658153136728.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 14:06:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Making-Bezier-Curves-using-SVG-Path-Strings/m-p/522764#M74749</guid>
      <dc:creator>thickey</dc:creator>
      <dc:date>2022-07-18T14:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Making Bezier Curves using SVG Path Strings</title>
      <link>https://community.jmp.com/t5/Discussions/Making-Bezier-Curves-using-SVG-Path-Strings/m-p/522887#M74765</link>
      <description>&lt;P&gt;I can confirm that it fails on JMP14 as well.&amp;nbsp; One thing that you can do is to construct the Bezier curves back-to-front like below (it only requires one MOVE command, as the ending point of each C is the beginning point of the next)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;circle = "M 0,150 C 82.8,150  150,82.8  150,0 C 150,-82.8 82.8,-150 0,-150 C -82.8,-150 -150,-82.8 -150,0 C -150,82.8 -82.8,150 0,150 z";

New Window( "JMP Layout Example",
	Graph Box(
		frameSize( 500, 500 ), 
		xScale(-175,175),
		yScale(-175,175),
		penColor("blue");
		penSize(2);
		path(circle , 0);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Jul 2022 16:53:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Making-Bezier-Curves-using-SVG-Path-Strings/m-p/522887#M74765</guid>
      <dc:creator>ErraticAttack</dc:creator>
      <dc:date>2022-07-18T16:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Making Bezier Curves using SVG Path Strings</title>
      <link>https://community.jmp.com/t5/Discussions/Making-Bezier-Curves-using-SVG-Path-Strings/m-p/523299#M74808</link>
      <description>&lt;P&gt;No Jarmo, I didn't use the eval/insert. I'll give it a go later when I get a minute.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As an aside, I didn't need to make four Bezier Arcs to generate a circle. SVG has an 'A' (Arc) tag than can draw one with far less characters....and is much easier to comprehend as it doesn't need to generate any Bezier 'Control points'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did need to add the 'double 0' at the end of the string to get it to work though as with the other example above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;"M -150 0 a 150 150 0 1 0 300 0 a 150 150 0 1 0 -300 00"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Comparing SVG ARC, SVG Bezier Curves and the native 'Circle' Function in JMP they all approximate pretty well.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;circleArcSyntax = "M -150 0 a 150 150 0 1 0 300 0 a 150 150 0 1 0 -300 00";
circleCurveSyntax = "M 0  150 C  82.8  150  150  82.8  150 00 M 0 -150 C  82.8 -150  150 -82.8  150 00 M 0 -150 C -82.8 -150 -150 -82.8 -150 00 M 0  150 C -82.8  150 -150  82.8 -150 00";
New Window( "JMP Circle Layout Example",
	Graph Box(
		frameSize( 500, 500 ), 
		xScale(-175,175),
		yScale(-175,175),
		
		penSize(20);
		penColor("yellow");
		path(circleArcSyntax, 0);
		
		penColor("red");
		penSize(10);
		path(circleCurveSyntax, 0);
		
		penSize(2);
		penColor("black");
		circle({0,0}, 150);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;SVG ARC = Yellow&lt;/P&gt;&lt;P&gt;SVG 4-segment Bezier Curve = Red&lt;/P&gt;&lt;P&gt;JMP 'Circle' Function = Black.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thickey_0-1658228616741.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44121i75C812CD4534D60C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="thickey_0-1658228616741.png" alt="thickey_0-1658228616741.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 11:06:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Making-Bezier-Curves-using-SVG-Path-Strings/m-p/523299#M74808</guid>
      <dc:creator>thickey</dc:creator>
      <dc:date>2022-07-19T11:06:36Z</dc:date>
    </item>
  </channel>
</rss>

