<?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 Adding a line to a 3-D scatterplot in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Adding-a-line-to-a-3-D-scatterplot/m-p/47071#M26826</link>
    <description>&lt;P&gt;Hello!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a lovely 3-D scatterplot and am trying to add some things that will help interpretation of the points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I would like to add a line connect the 0,0,0 vertex to the 1,1,1 vertex (a diagonal line from corner to corner through the middle).&amp;nbsp; There are very few points along this line, so using the contour options hasn't been working.&lt;/P&gt;&lt;P&gt;2. I would like to add a 2-tone gradient of background color to the walls so that it ranges from 1 shade on one end at 0, to a different shade at 1.&lt;/P&gt;&lt;P&gt;3. I would like to export this in its spinning glory.&amp;nbsp; A &lt;A href="https://community.jmp.com/t5/Discussions/export-rotating-3d-scatter-plot/td-p/9776" target="_self"&gt;post from 2014 &lt;/A&gt;says this is not possible, but hopefully that has been remedied by now?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Point 1 and 3 are the most important.&amp;nbsp; I am interested&amp;nbsp;in a non-scripting solution.&amp;nbsp; Thanks for your assistance!&lt;/P&gt;&lt;P&gt;Jennifer&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2017 18:13:44 GMT</pubDate>
    <dc:creator>jennifer_n_blak</dc:creator>
    <dc:date>2017-11-10T18:13:44Z</dc:date>
    <item>
      <title>Adding a line to a 3-D scatterplot</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-line-to-a-3-D-scatterplot/m-p/47071#M26826</link>
      <description>&lt;P&gt;Hello!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a lovely 3-D scatterplot and am trying to add some things that will help interpretation of the points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I would like to add a line connect the 0,0,0 vertex to the 1,1,1 vertex (a diagonal line from corner to corner through the middle).&amp;nbsp; There are very few points along this line, so using the contour options hasn't been working.&lt;/P&gt;&lt;P&gt;2. I would like to add a 2-tone gradient of background color to the walls so that it ranges from 1 shade on one end at 0, to a different shade at 1.&lt;/P&gt;&lt;P&gt;3. I would like to export this in its spinning glory.&amp;nbsp; A &lt;A href="https://community.jmp.com/t5/Discussions/export-rotating-3d-scatter-plot/td-p/9776" target="_self"&gt;post from 2014 &lt;/A&gt;says this is not possible, but hopefully that has been remedied by now?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Point 1 and 3 are the most important.&amp;nbsp; I am interested&amp;nbsp;in a non-scripting solution.&amp;nbsp; Thanks for your assistance!&lt;/P&gt;&lt;P&gt;Jennifer&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 18:13:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-line-to-a-3-D-scatterplot/m-p/47071#M26826</guid>
      <dc:creator>jennifer_n_blak</dc:creator>
      <dc:date>2017-11-10T18:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a line to a 3-D scatterplot</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-line-to-a-3-D-scatterplot/m-p/47095#M26842</link>
      <description>&lt;P&gt;There really haven't been any JSL upgrades to the 3D Scatterplot Platform, however, I believe the following technique will work, and I believe that it actually was available in 2014.&amp;nbsp; What I do to create the following display&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jennifer_n_blak.PNG" style="width: 518px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8297i3D2F393D90EFFBFD/image-size/large?v=v2&amp;amp;px=999" role="button" title="jennifer_n_blak.PNG" alt="jennifer_n_blak.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;is to create a new column that only has a value for the 2 rows that I want to draw a line between, and then I use&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jennifer_n_blakb.PNG" style="width: 520px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8298i2F2B8C54D108D6F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="jennifer_n_blakb.PNG" alt="jennifer_n_blakb.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;the&amp;nbsp;Connect Points,&amp;nbsp;&amp;nbsp;grouped by the new column, and it draws a line just between those 2 points.&amp;nbsp; Below is a sample script&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = New Table( "The Line",
	Add Rows( 40 ),
	New Column( "age",
		Numeric,
		"Ordinal",
		Format( "Fixed Dec", 5, 0 ),
		Set Values(
			[12, 12, 12, 13, 13, 13, 12, 12, 13, 16, 14, 13, 12, 12, 14, 14, 15, 15, 17, 14, 14,
			13, 14, 14, 14, 15, 13, 15, 16, 14, 14, 15, 15, 12, 15, 14, 16, 17, 14, 17]
		)
	),
	New Column( "height",
		Numeric,
		"Continuous",
		Format( "Fixed Dec", 5, 0 ),
		Set Values(
			[51, 52, 55, 56, 58, 59, 59, 60, 60, 60, 61, 61, 61, 61, 62, 62, 62, 62, 62, 63, 63,
			63, 64, 64, 64, 64, 65, 65, 65, 65, 65, 66, 66, 66, 67, 68, 68, 68, 69, 70]
		)
	),
	New Column( "weight",
		Numeric,
		"Continuous",
		Format( "Fixed Dec", 5, 0 ),
		Set Values(
			[79, 64, 74, 67, 95, 79, 95, 84, 112, 115, 81, 107, 123, 128, 85, 91, 92, 104, 116,
			84, 93, 105, 92, 99, 99, 112, 98, 111, 112, 119, 142, 105, 106, 145, 128, 112, 128,
			134, 113, 172]
		)
	),
	New Column( "Grouping",
		Character,
		"Nominal",
		Set Values(
			{"", "Line", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
			"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "Line"}
		)
	)
);

dt &amp;lt;&amp;lt; Scatterplot 3D(
	Y( :age, :height, :weight ),
	Connect Points( 1, :Grouping ),
	Frame3D(
		Set Grab Handles( 0 ),
		Set Rotation( -22.7391193234154, 33.6106458355737, 86.1083668103014 ),
		Set Marker Quality( 0.3875 ),
		Set Marker Scale( 1.21375 )
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Nov 2017 22:06:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-line-to-a-3-D-scatterplot/m-p/47095#M26842</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-11-10T22:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a line to a 3-D scatterplot</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-line-to-a-3-D-scatterplot/m-p/47125#M26856</link>
      <description>&lt;P&gt;Edited: this script is now available as an &lt;A href="https://community.jmp.com/t5/JMP-Add-Ins/3D-Plot-Tools/ta-p/48699/" target="_self"&gt;add-in in the file exchange&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding part 3 of your question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not know of an out-of-box way to do this without scripting today but attached is a script that might do what you need without knowing any scripting, provided you have JMP 13 and are using Windows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should get an animated gif file, similar to this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smallscatterplot3d.gif" style="width: 251px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8312i250898B233D88F51/image-size/large?v=v2&amp;amp;px=999" role="button" title="smallscatterplot3d.gif" alt="smallscatterplot3d.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what to do:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Download and save the attached jsl script&lt;/LI&gt;&lt;LI&gt;Create the scatterplot, add lines, resize, change colors, etc.&lt;/LI&gt;&lt;LI&gt;Go to the red triangle in Scatterplot 3D and select save script &amp;gt; save script to clipboard.&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="savescript.PNG" style="width: 503px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8306i91039ACB09AA6471/image-size/large?v=v2&amp;amp;px=999" role="button" title="savescript.PNG" alt="savescript.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;Open the jsl script you downloaded from here, at the top click run (make sure nothing is selected).&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clickrun.PNG" style="width: 379px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8308i83AA6CEC3E47BEA1/image-size/large?v=v2&amp;amp;px=999" role="button" title="clickrun.PNG" alt="clickrun.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;Fill in the options on the left, I recommend starting with the defaults except to choose a filename.&lt;/LI&gt;&lt;LI&gt;Paste your script from the clipboard into the text box on the right.&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fillinoptions.PNG" style="width: 842px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8309iA6B000DA8DA63BDD/image-size/large?v=v2&amp;amp;px=999" role="button" title="fillinoptions.PNG" alt="fillinoptions.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;Click go&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Wait a few seconds or minutes depending on the size of the scatterplot, the amount of data, and the duration/frames per second you selected and eventually it should save a copy of your spinning 3D scatterplot.&amp;nbsp; To change which variable is on top, change the order of the data columns on the bottom of the scatterplot 3D platform before saving the script to the clipboard.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 18:58:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-line-to-a-3-D-scatterplot/m-p/47125#M26856</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2017-12-22T18:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a line to a 3-D scatterplot</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-line-to-a-3-D-scatterplot/m-p/49027#M27849</link>
      <description>&lt;P&gt;FYI: This script to create animated gif images from rotating scatterplots is now available as an &lt;A href="https://community.jmp.com/t5/JMP-Add-Ins/3D-Plot-Tools/ta-p/48699/" target="_self"&gt;add-in in the file exchange&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 18:57:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-line-to-a-3-D-scatterplot/m-p/49027#M27849</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2017-12-22T18:57:24Z</dc:date>
    </item>
  </channel>
</rss>

