<?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: Add custom marker at a certain point on a line graph in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Add-custom-marker-at-a-certain-point-on-a-line-graph/m-p/268179#M52214</link>
    <description>Works great. Thanks so much. I used the customize box to add the script and it worked without a hitch.</description>
    <pubDate>Thu, 21 May 2020 18:28:29 GMT</pubDate>
    <dc:creator>syretted</dc:creator>
    <dc:date>2020-05-21T18:28:29Z</dc:date>
    <item>
      <title>Add custom marker at a certain point on a line graph</title>
      <link>https://community.jmp.com/t5/Discussions/Add-custom-marker-at-a-certain-point-on-a-line-graph/m-p/268163#M52210</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am plotting data curves for gait data using a line plot, as below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Example.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24113i37C1CF8D1815522E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Example.png" alt="Example.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am trying to do is add a custom marker at a certain value.&amp;nbsp; For example, I want to highlight that an event occurs around the 25 mark without obscuring the rest of the graph. I know how to add a vertical reference line, but the graph becomes too busy as it overlays the lines.&amp;nbsp; Is there a way just to add a custom marker as an overlay to this graph at a certain x-axis value?&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 17:39:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Add-custom-marker-at-a-certain-point-on-a-line-graph/m-p/268163#M52210</guid>
      <dc:creator>syretted</dc:creator>
      <dc:date>2020-05-21T17:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Add custom marker at a certain point on a line graph</title>
      <link>https://community.jmp.com/t5/Discussions/Add-custom-marker-at-a-certain-point-on-a-line-graph/m-p/268168#M52211</link>
      <description>&lt;P&gt;You can right click on the graph and select Customize, and in there you can add the code to place the marker where you want it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marker.PNG" style="width: 623px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24114iA5C4E475F5B5EE97/image-size/large?v=v2&amp;amp;px=999" role="button" title="marker.PNG" alt="marker.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Below are a couple of ways you can do it just through scripting&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );

Graph Builder(
	Size( 528, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :weight ), Y( :height ) ),
	Elements( Line( X, Y, Legend( 8 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			{Add Graphics Script(
				2,
				Description( "" ),
				Marker Size( 9 );
				Pen Color( "Black" );
				Marker( Marker State( 1 ), [113], [69] );
			), Grid Line Order( 1 ), Reference Line Order( 3 ),
			DispatchSeg(
				TopSeg( 1 ),
				{Set Script(
					Marker Size( 9 );
					Pen Color( "Black" );
					Marker( Marker State( 1 ), [113], [69] );
				)}
			)}
		)
	)
);

// or

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 528, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :weight ), Y( :height ) ),
	Elements( Line( X, Y, Legend( 8 ) ) )
);
Report( gb )[FrameBox( 1 )] &amp;lt;&amp;lt; Add Graphics Script(
	Marker Size( 9 );
	Pen Color( "Black" );
	Marker( Marker State( 1 ), [113], [69] );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 May 2020 17:57:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Add-custom-marker-at-a-certain-point-on-a-line-graph/m-p/268168#M52211</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-05-21T17:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Add custom marker at a certain point on a line graph</title>
      <link>https://community.jmp.com/t5/Discussions/Add-custom-marker-at-a-certain-point-on-a-line-graph/m-p/268172#M52212</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;answered the question about how to do what you want. I want to be sure that you know about a JMP Pro platform that is built to analyze curves and extract curve features for analysis in other JMP platforms. It is called the Functional Data Explorer. Curves are functional data.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 18:07:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Add-custom-marker-at-a-certain-point-on-a-line-graph/m-p/268172#M52212</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-05-21T18:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Add custom marker at a certain point on a line graph</title>
      <link>https://community.jmp.com/t5/Discussions/Add-custom-marker-at-a-certain-point-on-a-line-graph/m-p/268177#M52213</link>
      <description>Thanks! I am analyzing the curve using a different program (which I also use to generate the data), I just find as of now, JMP is the easiest way for me to graph the data how I would like. I'm sure there's much easier solutions out there.</description>
      <pubDate>Thu, 21 May 2020 18:25:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Add-custom-marker-at-a-certain-point-on-a-line-graph/m-p/268177#M52213</guid>
      <dc:creator>syretted</dc:creator>
      <dc:date>2020-05-21T18:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Add custom marker at a certain point on a line graph</title>
      <link>https://community.jmp.com/t5/Discussions/Add-custom-marker-at-a-certain-point-on-a-line-graph/m-p/268179#M52214</link>
      <description>Works great. Thanks so much. I used the customize box to add the script and it worked without a hitch.</description>
      <pubDate>Thu, 21 May 2020 18:28:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Add-custom-marker-at-a-certain-point-on-a-line-graph/m-p/268179#M52214</guid>
      <dc:creator>syretted</dc:creator>
      <dc:date>2020-05-21T18:28:29Z</dc:date>
    </item>
  </channel>
</rss>

