<?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: How can this JSL be used to create this graphic? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-this-JSL-be-used-to-create-this-graphic/m-p/922319#M108106</link>
    <description>&lt;P&gt;Could just do this.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Deg = -(A * 180 / Pi() - 90);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 06 Jan 2026 14:49:54 GMT</pubDate>
    <dc:creator>mmarchandFSLR</dc:creator>
    <dc:date>2026-01-06T14:49:54Z</dc:date>
    <item>
      <title>How can this JSL be used to create this graphic?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-this-JSL-be-used-to-create-this-graphic/m-p/921953#M108062</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2026-01-01_10-25-48.png" style="width: 705px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90065iBDDA4368CC6D50E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="2026-01-01_10-25-48.png" alt="2026-01-01_10-25-48.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This is the code I wrote for the AI to view images, but I failed to add any text successfully.&lt;BR /&gt;Thanks Experts!&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

// === 1. Data &amp;amp; Parameters ===
SolarTerms = {
    "夏至", "小暑", "大暑", "立秋", "处暑", "白露",
    "秋分", "寒露", "霜降", "立冬", "小雪", "大雪",
    "冬至", "小寒", "大寒", "立春", "雨水", "惊蛰",
    "春分", "清明", "谷雨", "立夏", "小满", "芒种"
};

OuterRadius = 10;
InnerRadius = OuterRadius / 2;
TermCount = N Items( SolarTerms );

SummerSolsticeX = 0; SummerSolsticeY = OuterRadius;
WinterSolsticeX = 0; WinterSolsticeY = -OuterRadius;

OuterX = J( TermCount, 1, . );
OuterY = J( TermCount, 1, . );
InnerX = J( TermCount, 1, . );
InnerY = J( TermCount, 1, . );
AngleList = J( TermCount, 1, . );

FontName = If( Host Is( "Mac" ), "Helvetica", "Arial" );

// === 2. Geometry ===
For( i = 1, i &amp;lt;= TermCount, i++,
    Angle = Pi() / 2 - (i - 1) * (2 * Pi() / 24);
    AngleList[i] = Angle;

    OuterX[i] = OuterRadius * Cos( Angle );
    OuterY[i] = OuterRadius * Sin( Angle );

    If( i &amp;lt;= 13,
        Progress = (i - 1) / 12;
        SmallAngle = Pi() / 2 - (Pi() * Progress);
        CX = 0; CY = InnerRadius;
    ,
        Progress = (i - 13) / 12;
        SmallAngle = Pi() / 2 + (Pi() * Progress);
        CX = 0; CY = -InnerRadius;
    );

    InnerX[i] = CX + InnerRadius * Cos( SmallAngle );
    InnerY[i] = CY + InnerRadius * Sin( SmallAngle );
);

// === 3. Window ===
nw = New Window( "Twenty-Four Solar Terms · Yin Yang Cycle",
    gb = Graph Box(
        Frame Size( 800, 800 ),
        X Scale( -16, 16 ),
        Y Scale( -16, 16 ),

        Fill Color( "Black" );
        Rect( -20, 20, 20, -20, 1 );

        Pen Color( {240, 230, 140} );
        Pen Size( 2 );
        Transparency( 0.9 );
        Circle( {0, 0}, OuterRadius );

        For( i = 1, i &amp;lt;= TermCount, i++,
            ix = InnerX[i]; iy = InnerY[i];
            ox = OuterX[i]; oy = OuterY[i];

            Pen Color( {240, 230, 140} );

            If( i &amp;gt; 1 &amp;amp; i &amp;lt; 13,
                Transparency( 0.4 ); Pen Size( 1 );
                Line( {SummerSolsticeX, SummerSolsticeY}, {ix, iy} );
                Transparency( 0.15 );
                Line( {ix, iy}, {ox, oy} );
            );

            If( i &amp;gt; 13,
                Transparency( 0.4 ); Pen Size( 1 );
                Line( {WinterSolsticeX, WinterSolsticeY}, {ix, iy} );
                Transparency( 0.15 );
                Line( {ix, iy}, {ox, oy} );
            );

            If( i == 1,
                Transparency( 0.6 ); Pen Size( 2 );
                Line( {0, 0}, {0, OuterRadius} );
            );

            If( i == 13,
                Transparency( 0.6 ); Pen Size( 2 );
                Line( {0, 0}, {0, -OuterRadius} );
            );
        );

        For( i = 1, i &amp;lt;= TermCount, i++,
            Pen Color( "Black" );
            Fill Color( {255, 215, 0} );
            Marker Size( 5 );
            Marker( 21, {OuterX[i], OuterY[i]} );
        );

        For( i = 1, i &amp;lt;= TermCount, i++,
            Pen Color( {218, 165, 32} );
            Fill Color( {255, 255, 224} );
            Marker Size( 6 );
            Marker( 21, {InnerX[i], InnerY[i]} );
        );

        Pen Color( "White" );
        Fill Color( {255, 250, 205} );
        Marker Size( 8 );
        Marker( 21, {0, 0} );

        LabelOffset = 1.8;
        For( i = 1, i &amp;lt;= TermCount, i++,
            Name = SolarTerms[i];
            A = AngleList[i];

            tx = (OuterRadius + LabelOffset) * Cos( A );
            ty = (OuterRadius + LabelOffset) * Sin( A );

            IsSolstice = ( Name == "夏至" | Name == "冬至" );
            TxtColor = If( IsSolstice, {255, 69, 0}, {224, 224, 224} );
            TxtSize = If( IsSolstice, 14, 11 );
            TxtWeight = If( IsSolstice, "bold", "plain" );

            Deg = A * 180 / Pi() - 90;

            Transparency( 1 );
            Fill Color( TxtColor );
            Text Font( FontName, TxtSize, TxtWeight );
            Text( Center Justified, {tx, ty}, Rotate( Deg ), Name );
        );

        Text Font( FontName, 20, "bold" );
        Fill Color( "White" );
        Text( Center Justified, {0, 14.5}, "Twenty-Four Solar Terms · Yin Yang Cycle" );
    )
);

gb &amp;lt;&amp;lt; Show X Axis( 0 );
gb &amp;lt;&amp;lt; Show Y Axis( 0 );
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Jan 2026 02:53:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-this-JSL-be-used-to-create-this-graphic/m-p/921953#M108062</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2026-01-02T02:53:54Z</dc:date>
    </item>
    <item>
      <title>回复： How can this JSL be used to create this graphic?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-this-JSL-be-used-to-create-this-graphic/m-p/921965#M108063</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2026-01-02_08-40-10.png" style="width: 950px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90066iAD8D2C6E05FCC530/image-size/large?v=v2&amp;amp;px=999" role="button" title="2026-01-02_08-40-10.png" alt="2026-01-02_08-40-10.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;python&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2026-01-02_08-24-11.png" style="width: 939px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90067i9571B3B0FB0096AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="2026-01-02_08-24-11.png" alt="2026-01-02_08-24-11.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 02:55:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-this-JSL-be-used-to-create-this-graphic/m-p/921965#M108063</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2026-01-02T02:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can this JSL be used to create this graphic?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-this-JSL-be-used-to-create-this-graphic/m-p/921972#M108064</link>
      <description>&lt;P&gt;You have to set text color correctly (Text Color()) and you are using incorrect syntax for the angle of the text. Angle is determined with Text Font (check Scripting Index / JMP Help for the correct syntax and how to use it)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1767334437625.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90073i2885F9DA4387180C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1767334437625.png" alt="jthi_0-1767334437625.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 06:14:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-this-JSL-be-used-to-create-this-graphic/m-p/921972#M108064</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-01-02T06:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can this JSL be used to create this graphic?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-this-JSL-be-used-to-create-this-graphic/m-p/921987#M108066</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2026-01-02_15-00-47.png" style="width: 950px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90077iA0FF82DC761A4FB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="2026-01-02_15-00-47.png" alt="2026-01-02_15-00-47.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Thank jthi !&lt;BR /&gt;&lt;SPAN class="transSent" data-group="0-0"&gt;Could you help me keep making corrections?&lt;/SPAN&gt;&lt;SPAN class="transSent" data-group="0-1"&gt;Thank you very much for your continued JSL reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 07:43:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-this-JSL-be-used-to-create-this-graphic/m-p/921987#M108066</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2026-01-02T07:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can this JSL be used to create this graphic?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-this-JSL-be-used-to-create-this-graphic/m-p/921988#M108067</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I just want to achieve the effect of the original picture as much as possible.&lt;BR /&gt;Thanks Experts!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 07:44:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-this-JSL-be-used-to-create-this-graphic/m-p/921988#M108067</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2026-01-02T07:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can this JSL be used to create this graphic?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-this-JSL-be-used-to-create-this-graphic/m-p/922257#M108084</link>
      <description>&lt;P&gt;Check out the Scripting Index example for Text Font(). It does something similar that might be useful to your case.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XanGregg_0-1767643200244.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90257i07DA285004FD50B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XanGregg_0-1767643200244.png" alt="XanGregg_0-1767643200244.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 20:00:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-this-JSL-be-used-to-create-this-graphic/m-p/922257#M108084</guid>
      <dc:creator>XanGregg</dc:creator>
      <dc:date>2026-01-05T20:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can this JSL be used to create this graphic?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-this-JSL-be-used-to-create-this-graphic/m-p/922288#M108100</link>
      <description>&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent" data-group="0-0"&gt;I know this&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent" data-group="1-0"&gt;I made this picture.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent" data-group="2-0"&gt;But this picture is different&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2026-01-03_14-28-42.png" style="width: 906px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90271i53C801D5ACAEF6B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="2026-01-03_14-28-42.png" alt="2026-01-03_14-28-42.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2026 08:49:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-this-JSL-be-used-to-create-this-graphic/m-p/922288#M108100</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2026-01-06T08:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can this JSL be used to create this graphic?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-this-JSL-be-used-to-create-this-graphic/m-p/922290#M108101</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The rotation of the characters still hasn't been resolved&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2026-01-06_16-52-55.png" style="width: 952px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90274i08626AD0E0848ABA/image-size/large?v=v2&amp;amp;px=999" role="button" title="2026-01-06_16-52-55.png" alt="2026-01-06_16-52-55.png" /&gt;&lt;/span&gt;Thanks Experts!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2026 08:54:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-this-JSL-be-used-to-create-this-graphic/m-p/922290#M108101</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2026-01-06T08:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can this JSL be used to create this graphic?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-this-JSL-be-used-to-create-this-graphic/m-p/922319#M108106</link>
      <description>&lt;P&gt;Could just do this.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Deg = -(A * 180 / Pi() - 90);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Jan 2026 14:49:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-this-JSL-be-used-to-create-this-graphic/m-p/922319#M108106</guid>
      <dc:creator>mmarchandFSLR</dc:creator>
      <dc:date>2026-01-06T14:49:54Z</dc:date>
    </item>
  </channel>
</rss>

