Choose Language Hide Translation Bar
Highlighted
VeryData
Level II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
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
Highlighted
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
Highlighted
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

Article Labels

    There are no labels assigned to this post.