View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
DifferenceChart Demo

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 204 KB File ID: #30485 Version: 1.0
image thumbnail

DifferenceChart Demo


Sven Koerner (view profile)


Demonstration of DifferenceChart in TimeSeries. Uses JFreeChart and Matlab

| Watch this File

File Information

Multiple TimeSeriesDemo alá JFreeGraph-Demo

The code behind is just a demo of what is possible with JFreeChart using it in Matlab. I played a little
with codesnippets I found on the web and the API-Documentation.
( When you want to explore the whole functionality,
I think it is better to buy the JFreeChart Developer Guide (

This function shows the different between 2 random series as an example of JFreeChart
( The Idea to this code is based on the UndocumentedMatlab-Blog of Yair Altman, who
shows a sample Code of JFreeChart for creating a PieChart

Within the plot you can zoom by pressing the left mouse button and moving the pointer. Also you have some
properties by right-clicking on the chart.

Before this demo works, you need to download JFreeChart and make matlab get to know with it. There are 2
ways you can do this:

1. Add the jcommon and jfreechart jar to the dynamic matlab JavaClassPath (uncommented lines in the first
   cell an change path to your local installation path)
2. Add the jcommon and jfreechart jar to the static matlab JavaClassPath (see Matlab Help, modify
   classpath.txt on matlabroot\toolbox\local)

Finally you must donwload jcontrol from Malcom Lidierth

Bugs and suggestions:
   Please send to Sven Koerner: koerner(underline)sven(add)

You need to download and install first:


Using Java Swing Components In Matlab inspired this file.

MATLAB release MATLAB 7.10 (R2010a)
Other requirements
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
31 Jul 2012 Sven Koerner

Sven Koerner (view profile)

Hi Thierry,
you're right. I tested it with version JFC 1.0.13.

Comment only
31 Jul 2012 Thierry Dalon

Hi Sven
In the Requirements you point at two versions of JFreeChart. Only one (the latest) is sufficient, isn't it?

Comment only

Contact us