Choose Language Hide Translation Bar
VeryData
New Contributor

How to Graph Lists Not in Data Table

I'm currently writing a script. In that script, I did some calculations and created some lists that are not part of my data table.

 

I want to plot these lists against each other. Is this possible to do with graph builder? Or must I load these lists into a data table and then plot them? That's the work around suggested by my peers.

0 Kudos
1 ACCEPTED SOLUTION

Accepted Solutions
vince_faller
Super User

Re: How to Graph Lists Not in Data Table

The graphics tools are under `GraphBox`

Names default to here(1);
l1 = {1, 2, 3};
l2 = {4, 5, 6};
New Window( "Example",
	Graph Box(
		X Scale( 0, 8 ),
		Y Scale( 0, 8 ),
		Frame Size( 300, 300 ),
		Marker( matrix(l1), matrix(l2) );
		Pen Color( "Blue" );
		
	)
);

 

Vince Faller - Predictum

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: How to Graph Lists Not in Data Table

You can either put the lists into a data table and use graph builder or you can use the graphic tools that are part of jsl. See the documentation in the scripting guide for the jsl graph functions
Jim
0 Kudos
vince_faller
Super User

Re: How to Graph Lists Not in Data Table

The graphics tools are under `GraphBox`

Names default to here(1);
l1 = {1, 2, 3};
l2 = {4, 5, 6};
New Window( "Example",
	Graph Box(
		X Scale( 0, 8 ),
		Y Scale( 0, 8 ),
		Frame Size( 300, 300 ),
		Marker( matrix(l1), matrix(l2) );
		Pen Color( "Blue" );
		
	)
);

 

Vince Faller - Predictum

View solution in original post