<?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: Font colour changes when spinning a surface plot in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Font-colour-changes-when-spinning-a-surface-plot/m-p/351682#M60117</link>
    <description>&lt;P&gt;Wow! That is a really beautiful visual!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get the same behaviour when I use Set Spin(). But not when I manually rotate the plot using click-and-drag.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure what causes this or if there is a way to fix it. You might want to contact tech support (&lt;A href="mailto:support@jmp.com" target="_blank"&gt;support@jmp.com&lt;/A&gt;). I have pasted an example script, below, that demonstrates the issue you are talking about using Tiretread example data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other than that, you could just screen record your manual rotation of the plot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Phil&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Tiretread.jmp" );

obj = Surface Plot(
	Columns( :Pred Formula ABRASION ),
	Control Panel( 0 ),
	Surface Color Theme( "Green to Black to Red" ),
	Surface Color Theme2( "Green to White to Red" ),
	Surface Color Theme3( "White to Black" ),
	Surface Color Theme4( "Blue to Gray to Red" ),
	Response Column Color Theme( "Blue to Green to Red" ),
	Response Column Color Theme2( "Blue to Gray to Orange" ),
	Response Column Color Theme3( "Spectral" ),
	Response Column Color Theme4( "Jet" ),
	Formula( "Pred Formula ABRASION" ),
	Surface Color Method( "Solid", "Solid", "Solid", "Solid" ),
	SetVariableAxis( :SILICA, Axis Data( {} ) ),
	SetVariableAxis( :SILANE, Axis Data( {} ) ),
	SetZAxis( :Pred Formula ABRASION, Current Value( 125 ), Axis Data( {} ) ),
	SetXVariable( :SILICA ),
	SetYVariable( :SILANE ),
	Iso Value( 0, 139.119238722664 ),
	Frame3D(
		Set Graph Size( 470, 470 ),
		Set Grab Handles( 0 ),
		Set Hide Lights Border( 1 ),
		Set Rotation( -66.7809360215981, 3.32558351899253, 44.6221502352661 )
	)
);

obj &amp;lt;&amp;lt; Frame3D( Set Spin( 0.1, 0, 0.01, 0 ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 22 Jan 2021 09:17:37 GMT</pubDate>
    <dc:creator>Phil_Kay</dc:creator>
    <dc:date>2021-01-22T09:17:37Z</dc:date>
    <item>
      <title>Font colour changes when spinning a surface plot</title>
      <link>https://community.jmp.com/t5/Discussions/Font-colour-changes-when-spinning-a-surface-plot/m-p/350892#M60052</link>
      <description>&lt;P&gt;I've produced a surface plot using a predicted formula from a definitive screening design.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to present my plot in a presentation with the plot rotating. To do so I followed this thread:&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Spinning-a-Scatterplot-3D/td-p/6510" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Spinning-a-Scatterplot-3D/td-p/6510&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The advice here was originally for a scatter plot, however I got it working using the same line of code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Set Spin( 0.01, 0, 0.01, 0 )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The spinning works fine, however when the plot is spinning the font colours change from black to a feint grey, making them more difficult to read:&lt;/P&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="Whilst spinning" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29543iD8B8D1306720181F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Grey surface plot.JPG" alt="Whilst spinning" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Whilst spinning&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Whilst stationary" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29544i0EE50B5B3E43F426/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Black surface plot.JPG" alt="Whilst stationary" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Whilst stationary&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does anyone know what's causing this/if there's anything I can do to fix the problem? Or perhaps a different way to make the surface plot spin that doesn't result in this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:10:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Font-colour-changes-when-spinning-a-surface-plot/m-p/350892#M60052</guid>
      <dc:creator>macca5019</dc:creator>
      <dc:date>2023-06-11T11:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Font colour changes when spinning a surface plot</title>
      <link>https://community.jmp.com/t5/Discussions/Font-colour-changes-when-spinning-a-surface-plot/m-p/351682#M60117</link>
      <description>&lt;P&gt;Wow! That is a really beautiful visual!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get the same behaviour when I use Set Spin(). But not when I manually rotate the plot using click-and-drag.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure what causes this or if there is a way to fix it. You might want to contact tech support (&lt;A href="mailto:support@jmp.com" target="_blank"&gt;support@jmp.com&lt;/A&gt;). I have pasted an example script, below, that demonstrates the issue you are talking about using Tiretread example data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other than that, you could just screen record your manual rotation of the plot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Phil&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Tiretread.jmp" );

obj = Surface Plot(
	Columns( :Pred Formula ABRASION ),
	Control Panel( 0 ),
	Surface Color Theme( "Green to Black to Red" ),
	Surface Color Theme2( "Green to White to Red" ),
	Surface Color Theme3( "White to Black" ),
	Surface Color Theme4( "Blue to Gray to Red" ),
	Response Column Color Theme( "Blue to Green to Red" ),
	Response Column Color Theme2( "Blue to Gray to Orange" ),
	Response Column Color Theme3( "Spectral" ),
	Response Column Color Theme4( "Jet" ),
	Formula( "Pred Formula ABRASION" ),
	Surface Color Method( "Solid", "Solid", "Solid", "Solid" ),
	SetVariableAxis( :SILICA, Axis Data( {} ) ),
	SetVariableAxis( :SILANE, Axis Data( {} ) ),
	SetZAxis( :Pred Formula ABRASION, Current Value( 125 ), Axis Data( {} ) ),
	SetXVariable( :SILICA ),
	SetYVariable( :SILANE ),
	Iso Value( 0, 139.119238722664 ),
	Frame3D(
		Set Graph Size( 470, 470 ),
		Set Grab Handles( 0 ),
		Set Hide Lights Border( 1 ),
		Set Rotation( -66.7809360215981, 3.32558351899253, 44.6221502352661 )
	)
);

obj &amp;lt;&amp;lt; Frame3D( Set Spin( 0.1, 0, 0.01, 0 ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Jan 2021 09:17:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Font-colour-changes-when-spinning-a-surface-plot/m-p/351682#M60117</guid>
      <dc:creator>Phil_Kay</dc:creator>
      <dc:date>2021-01-22T09:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Font colour changes when spinning a surface plot</title>
      <link>https://community.jmp.com/t5/Discussions/Font-colour-changes-when-spinning-a-surface-plot/m-p/351730#M60121</link>
      <description>&lt;P&gt;It dims on purpose to make the text less distracting. The labeled axes are already switching about to stay out of the way of the graph and were hard to watch when solid black. I'm unaware of any way to disable the feature. To extend Phil's suggestion, you can script the Frame3D &amp;lt;&amp;lt;setRotation method and capture images.&amp;nbsp;@Anonymous&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Or, it is fast enough you might just run the script without capturing the images.)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Tiretread.jmp" );

obj = Surface Plot(
	Columns( :Pred Formula ABRASION ),
	Control Panel( 0 ),
	Surface Color Theme( "Green to Black to Red" ),
	Surface Color Theme2( "Green to White to Red" ),
	Surface Color Theme3( "White to Black" ),
	Surface Color Theme4( "Blue to Gray to Red" ),
	Response Column Color Theme( "Blue to Green to Red" ),
	Response Column Color Theme2( "Blue to Gray to Orange" ),
	Response Column Color Theme3( "Spectral" ),
	Response Column Color Theme4( "Jet" ),
	Formula( "Pred Formula ABRASION" ),
	Surface Color Method( "Solid", "Solid", "Solid", "Solid" ),
	SetVariableAxis( :SILICA, Axis Data( {} ) ),
	SetVariableAxis( :SILANE, Axis Data( {} ) ),
	SetZAxis( :Pred Formula ABRASION, Current Value( 125 ), Axis Data( {} ) ),
	SetXVariable( :SILICA ),
	SetYVariable( :SILANE ),
	Iso Value( 0, 139.119238722664 ),
	Frame3D(
		Set Graph Size( 470, 470 ),
		Set Grab Handles( 0 ),
		Set Hide Lights Border( 1 ), 
		//Set Rotation( 10, 20, 30 )
	)
);

//oscillate using cosine 
ipic=0;
For( n = 1, n &amp;lt;= 3, n += 1,
	For( i = 0, i &amp;lt; 1, i += 1 / 32,
		delta = 5 * Cos( 2 * Pi() * i ); // 5 * (1..-1..1)
		obj &amp;lt;&amp;lt; frame3d( setrotation( 10 + delta, 20 + delta, 30 + delta ) );
		obj &amp;lt;&amp;lt; updatewindow;
		Wait( 0 );
		// take picture here if wanted
		//img = report(obj)[SceneBox(1)]&amp;lt;&amp;lt;getpicture;
		//img&amp;lt;&amp;lt;saveimage("f:/surf/surf"||right(char((ipic++)+1000000),6)||".gif","gif");
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="oscillating 3D surface" style="width: 434px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29639i750A57DBFA4F5429/image-size/large?v=v2&amp;amp;px=999" role="button" title="osc.gif" alt="oscillating 3D surface" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;oscillating 3D surface&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I used gifsicle to make the animated gif; there are many ways to turn the sequence of images into an animated gif or video.&lt;/P&gt;&lt;P&gt;gifsicle -O3 -d 10 --loop=0 surf*.gif &amp;gt;osc.gif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 14:02:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Font-colour-changes-when-spinning-a-surface-plot/m-p/351730#M60121</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-01-22T14:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Font colour changes when spinning a surface plot</title>
      <link>https://community.jmp.com/t5/Discussions/Font-colour-changes-when-spinning-a-surface-plot/m-p/351771#M60123</link>
      <description>&lt;P&gt;The script for oscillating is written to produce a complete cycle. The cos() function gets a (nearly) complete input range from 0 to 2*pi, which makes the output range from +1 to -1 back to (nearly) +1 again. That is multiplied by 5 to produce +/- 5 degree motion. It loops, perfectly, because the next step after the last step is the first image. (If the for-i loop used &amp;lt;= there would be a duplicated frame.) The for-n loop is not needed for making pictures, but useful for a live demo.&lt;/P&gt;&lt;P&gt;You could make a tumbling demo rather than an oscillating demo without the cosine function. The oscillator uses the same delta from each of the initial x,y,z angles. As long as all the angles return to the same initial value at the end of the tumble, it will loop nicely. Something like&amp;nbsp;&lt;/P&gt;&lt;P&gt;setrotation( 1*2*pi()*i,3*2*pi()*i,5*2*pi()*i) for 0&amp;lt;i&amp;lt;1&lt;/P&gt;&lt;P&gt;where each angle goes through 1 or more complete 2pi rotations (1,3,5 as shown).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the oscillation over a small range is better for understanding. Tumbling &lt;EM&gt;may&lt;/EM&gt; be better for attention grabbing.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Triple Helix spinning in 3D" style="width: 248px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22793i65070924ED5736A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="TripleHelix.gif" alt="Triple Helix spinning in 3D" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Triple Helix spinning in 3D&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8113_ellipse.gif" style="width: 192px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/1275i52FF152CC731AC13/image-size/large?v=v2&amp;amp;px=999" role="button" title="8113_ellipse.gif" alt="8113_ellipse.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 14:22:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Font-colour-changes-when-spinning-a-surface-plot/m-p/351771#M60123</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-01-22T14:22:50Z</dc:date>
    </item>
  </channel>
</rss>

