Skip to content

Latest commit

 

History

History

17-07-02_nice_axis

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Intelligent Axis

This from-scratch re-code has separate classes for core plotting routines, data generation, and axis manipulation. Tick marks are quite intelligent as well. Included is a GUI demo as well as a 6 line console application which does the same thing (saving the output to a .jpg file instead of displaying it interactively).

Create Graph Image from Console Application

This 6-line program will generate 5,000 random data points and save the output graph as a figure.

Console Application Source Code

private static void Main(string[] args)
{
	ScottPlot2.ScottPlot SP = new ScottPlot2.ScottPlot();
	ScottPlot2.Generate SPgen = new ScottPlot2.Generate();

	SP.SetSize(1500, 400);
	SP.AddLine(SPgen.Sequence(5000), SPgen.Sine(5000));

	SP.Render();
	SP.SaveFig("test.jpg");
}

Console Application Output

Interactive GUI

The axis labels are getting really smart. This makes live panning and zooming a breeze!