cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
OneNorthJMP
Level V

How to draw a trapezoid inside Fit Y by X chart or graph builder?

I am looking a way to draw a trapezoid limit inside Fit Y by X chart or graph builder like excel example below. Any idea? 

 

OneNorthJMP_0-1618752728449.png

 

4 REPLIES 4
statman
Super User

Re: How to draw a trapezoid inside Fit Y by X chart or graph builder?

Sorry, I do not know off hand, so I'll let others chime in. What is the criteria you want to use to create the trapezoid? Why do you want this?

"All models are wrong, some are useful" G.E.P. Box
Thierry_S
Super User

Re: How to draw a trapezoid inside Fit Y by X chart or graph builder?

Hi,
Could you confirm that you are looking for a method to calculate the anchor points of your trapezoid and not just a method to draw the trapezoid which can be easily done with the Polygon () function? If it is the case, what are the criteria for the desired dimensions of your trapezoid (i.e. anchor point positions)?
Best,
TS
Thierry R. Sornasse
txnelson
Super User

Re: How to draw a trapezoid inside Fit Y by X chart or graph builder?

If you right click on the graph, you can Customize the graph, which will allow you to add the graphics you want to the chart.

cust.PNG

Here is what the customization window looks like

cust2.PNG

And here is the simple graphic code required

pen color("blue");
pen size(2);
line([.273, .292, .339,.319,.273 ], [.279, .334, .359,.302,.279]);
Marker Size( 5 );
		Marker(
			color state( blue ),
			Marker State( 15 ),
			[.273, .292, .339,.319],
			[.279, .334, .359,.302]
		);

 

Jim
G_M
G_M
Level III

Re: How to draw a trapezoid inside Fit Y by X chart or graph builder?

@OneNorthJMP, Perhaps you will find what you are looking for in the Scripting Index, under the Help menu, by searching Polygon. You should be able to combine what you see under polygon in the scripting index with graph builder by right clicking in the graph space and selecting customize, then clicking the + symbol in the dialog that appears, to add a custom script (polygon()).
Hope this helps.