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
lwx228
Level VIII

Two questions for "Big Class Families.JMP"

1. Can the picture in the "picture" column be imported from the computer's hard drive or from the Internet?

For example, how to use the JSL implementation to add "c:\1.png" to dt[1,1].

2021-02-26_18-04-25.png

 

 

2. How the script "Graph Builder with Pictures"s:

"UniqueID(1180683047)," and "Origin({70.1036850751071, 172.033784817876})," are determined.

How can these numbers be computed using functional formulas?

2021-02-26_11-51-01.png

1 ACCEPTED SOLUTION

Accepted Solutions
ian_jmp
Level X

Re: Two questions for "Big Class Families.JMP"

For part of question 1, something like:

NamesDefaultToHere(1);

pic = Open( "$SAMPLE_IMAGES/tile.jpg", jpg );

dt = New Table( "Table with Images",
				Add Rows( 1 ),
				New Column( "Image Column",
					Expression,
					"None",
					Set Selected,
					Set Values( {Empty()} )
				)
			);

Wait(3);
Column(dt, "Image Column")[1] = pic;

View solution in original post

5 REPLIES 5
lwx228
Level VIII

Re: Two questions for "Big Class Families.JMP"

"UNIQUEID (1180683047)," I cannot find it in the original file.

 

Thanks Experts!

ian_jmp
Level X

Re: Two questions for "Big Class Families.JMP"

For part of question 1, something like:

NamesDefaultToHere(1);

pic = Open( "$SAMPLE_IMAGES/tile.jpg", jpg );

dt = New Table( "Table with Images",
				Add Rows( 1 ),
				New Column( "Image Column",
					Expression,
					"None",
					Set Selected,
					Set Values( {Empty()} )
				)
			);

Wait(3);
Column(dt, "Image Column")[1] = pic;
lwx228
Level VIII

Re: Two questions for "Big Class Families.JMP"

Thanks ian! I finally learned the principle.

lwx228
Level VIII

Re: Two questions for "Big Class Families.JMP"

I continue to ask: how to use JSL directly on the screen and then write dt[1,1].


For example, take a screenshot of the logo in the upper left corner of the JMP.com page and write dt[1,1].

Thanks Experts!

 

2021-02-26_21-20-52.png

 

lwx228
Level VIII

Re: Two questions for "Big Class Families.JMP"

  • Try this, too. Thank you very much!

pic = Open( "http://……=000001", png );

dt = New Table( "Table with Images",
				Add Rows( 1 ),
				New Column( "Image Column",
					Expression,
					"None",
					Set Selected,
					Set Values( {Empty()} )
				)
			);

Wait(3);
Column(dt, "Image Column")[1] = pic;