<?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: When I save figure as SVG, text rotation is lost. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/When-I-save-figure-as-SVG-text-rotation-is-lost/m-p/681778#M86741</link>
    <description>&lt;P&gt;Thank you!&amp;nbsp; I will give it a try later today and report back.&lt;/P&gt;&lt;P&gt;-Erika.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2023 20:23:31 GMT</pubDate>
    <dc:creator>HydroBug</dc:creator>
    <dc:date>2023-09-27T20:23:31Z</dc:date>
    <item>
      <title>When I save figure as SVG, text rotation is lost.</title>
      <link>https://community.jmp.com/t5/Discussions/When-I-save-figure-as-SVG-text-rotation-is-lost/m-p/681353#M86696</link>
      <description>&lt;P&gt;Hello all -&lt;/P&gt;&lt;P&gt;I'm running JMP Pro 16.1.0 and I have an issue that is driving me insane. I have a fairly complex figure with tons of data.&amp;nbsp; I need to add some text labels to it so I can describe different periods of time. The text needs to be rotated so that it will fit in the space and read well. I read on a post that Text Annotations cannot be rotated counterclockwise, but plain old text text can.&amp;nbsp; So I added my text labels as shown in the script below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture3.PNG" style="width: 469px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56989iC65BDD30F2376C43/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture3.PNG" alt="Capture3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I run the script, the figure is PERFECT.&amp;nbsp; Took a long time to get to this point.&amp;nbsp; I am super happy with it in JMP, this is what it looks like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 639px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56990i6AB3DDC0E814891D/image-dimensions/639x155?v=v2" width="639" height="155" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is my problem: When I export/save the graph as an SVG, the text rotation is lost as is shown below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 636px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56991i7E63305899C01E9F/image-dimensions/636x155?v=v2" width="636" height="155" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I export as an EMF file, the text rotation is kept, but I want to save as an SVG. Any ideas why this is happening or if it has to do with the scripting?&amp;nbsp; It is really driving me insane, I have spent HOURS on these sets of graphs and I just want those labels rotate and a nice SVG file.&lt;/P&gt;&lt;P&gt;Thank you all for ANY input you can provide.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 19:26:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/When-I-save-figure-as-SVG-text-rotation-is-lost/m-p/681353#M86696</guid>
      <dc:creator>HydroBug</dc:creator>
      <dc:date>2023-09-26T19:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: When I save figure as SVG, text rotation is lost.</title>
      <link>https://community.jmp.com/t5/Discussions/When-I-save-figure-as-SVG-text-rotation-is-lost/m-p/681446#M86702</link>
      <description>&lt;P&gt;Looks like a bug. You can work around it like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Use the TextFont command to specify the font name and rotation." style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56996i6B397E4C136248D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.png" alt="Use the TextFont command to specify the font name and rotation." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Use the TextFont command to specify the font name and rotation.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1893"&gt;@Audrey_Shull&lt;/a&gt; - the bottom graph is the saved SVG, opened in an external viewer, Firefox in this case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gb = Graph Builder(
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements(
		Points( X, Y, Legend( 1 ) ),
		Smoother( X, Y, Legend( 2 ) )
	),
	SendToReport(
		Dispatch( {}, "height", ScaleBox,
			{Label Row( Label Orientation( "Perpendicular" ) )}
		),
		Dispatch( {}, "weight", ScaleBox,
			{Label Row( Label Orientation( "Angled" ) )}
		)
	)
);

Report( gb )[framebox( 1 )] &amp;lt;&amp;lt;
addgraphicsscript( Text( counterclockwise, {60, 60}, "Hello" ) );

Report( gb )[framebox( 1 )] &amp;lt;&amp;lt;
addgraphicsscript(
	{fname, fsize, fstyle, fangle} = Text Font();
	Text Font( fname, fsize, fstyle, -90 );
	Text( {65, 60}, "Hello" );
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Sep 2023 02:30:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/When-I-save-figure-as-SVG-text-rotation-is-lost/m-p/681446#M86702</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-09-27T02:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: When I save figure as SVG, text rotation is lost.</title>
      <link>https://community.jmp.com/t5/Discussions/When-I-save-figure-as-SVG-text-rotation-is-lost/m-p/681777#M86740</link>
      <description>&lt;P&gt;Thanks for the example&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;&amp;nbsp;- we opened a ticket with the dev team, but it's nice to have this workaround documented too.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 20:11:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/When-I-save-figure-as-SVG-text-rotation-is-lost/m-p/681777#M86740</guid>
      <dc:creator>Audrey_Shull</dc:creator>
      <dc:date>2023-09-27T20:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: When I save figure as SVG, text rotation is lost.</title>
      <link>https://community.jmp.com/t5/Discussions/When-I-save-figure-as-SVG-text-rotation-is-lost/m-p/681778#M86741</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp; I will give it a try later today and report back.&lt;/P&gt;&lt;P&gt;-Erika.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 20:23:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/When-I-save-figure-as-SVG-text-rotation-is-lost/m-p/681778#M86741</guid>
      <dc:creator>HydroBug</dc:creator>
      <dc:date>2023-09-27T20:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: When I save figure as SVG, text rotation is lost.</title>
      <link>https://community.jmp.com/t5/Discussions/When-I-save-figure-as-SVG-text-rotation-is-lost/m-p/682682#M86822</link>
      <description>&lt;P&gt;Hi Craige -&lt;/P&gt;&lt;P&gt;It works!!!&amp;nbsp; The text exports perfectly.&lt;/P&gt;&lt;P&gt;Thank you, thank you, thank you!&lt;/P&gt;&lt;P&gt;-Erika.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 23:06:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/When-I-save-figure-as-SVG-text-rotation-is-lost/m-p/682682#M86822</guid>
      <dc:creator>HydroBug</dc:creator>
      <dc:date>2023-09-29T23:06:40Z</dc:date>
    </item>
  </channel>
</rss>

