Code covered by the BSD License  

Highlights from
Easy MultipleTimeseriesSeries

4.0

4.0 | 1 rating Rate this file 22 Downloads (last 30 days) File Size: 262.15 KB File ID: #30405
image thumbnail

Easy MultipleTimeseriesSeries

by Sven Körner

 

14 Feb 2011

Example Code of MultipleTimeSeries using JFreeChart within Matlab

| Watch this File

File Information
Description

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.
(http://www.jfree.org/jfreechart/api/javadoc/index.html). When you want to explore the whole functionality,
I think it is better to buy the JFreeChart Developer Guide (http://www.jfree.org/jfreechart/devguide.html).

This function shows a multiple TimeSeries as an example of JFreeChart (http://www.jfree.org/). 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 (http://undocumentedmatlab.com/blog/jfreechart-graphs-and-gauges/#comments)

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
(http://www.mathworks.com/matlabcentral/fileexchange/15580-using-java-swing-components-in-matlab).

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Using Java Swing components in MATLAB

MATLAB release MATLAB 7.10 (2010a)
Other requirements http://sourceforge.net/projects/jfreechart/files/1.%20JFreeChart/1.0.13/ http://sourceforge.net/projects/jfreechart/files/1.%20JFreeChart/1.0.9/ http://www.mathworks.com/matlabcentral/fileexchange/15580-using-java-swing-components-in-matlab
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
14 Feb 2011 Yair Altman

Thanks Sven - I updated the Blog comment with a link here.

I think additional JFreeChart-based utilities such as this will be accepted with enthusiasm by the Matlab File Exchange community. So please keep up by posting additional plot types.

05 Aug 2011 Zdenek Cepa  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
multiple axis Sven Körner 14 Feb 2011 09:57:41
yy Sven Körner 14 Feb 2011 09:57:41
yyy Sven Körner 14 Feb 2011 09:57:41
java jfreechart Sven Körner 14 Feb 2011 09:57:41
timeseries Sven Körner 14 Feb 2011 09:57:41
plotyy Sven Körner 14 Feb 2011 09:57:41
plot Sven Körner 14 Feb 2011 09:57:41
java Yair Altman 14 Feb 2011 10:47:13
undocumented Yair Altman 14 Feb 2011 10:47:13

Contact us at files@mathworks.com