Search found 11 matches
- Thu Apr 19, 2007 6:34 pm
- Forum: JFreeChart
- Topic: Memory Leak?
- Replies: 12
- Views: 14934
I took a look into the source code for XYPlot and saw what was happening when I called setDataSet(null); and it looked like it was removing change listeners. So I tried the following code and it fixed it just the same as running setDataSet(null); if(chart != null && chart.getXYPlot().getDataset() !=...
- Thu Apr 19, 2007 3:18 pm
- Forum: JFreeChart
- Topic: Memory Leak?
- Replies: 12
- Views: 14934
Also.... After I did that little fix by setting the dataset to null, I can still induce memory errors by using the mouse and zooming back and forth. Select a rectangle, zoom back to original, select a rectangle, zoom back to original over and over again eats up memory that I can't seem to get back. ...
- Thu Apr 19, 2007 2:53 pm
- Forum: JFreeChart
- Topic: Memory Leak?
- Replies: 12
- Views: 14934
Memory Leak?
I am writing a little utility as mentioned here. http://www.jfree.org/phpBB2/viewtopic.php?t=20945 I have files with a bunch of datasets (average is about 120 data sets with 1,600 datapoints each). Every time I show a new data set, I create a new chart. I could watch the memory usage go up as I go t...
- Thu Apr 19, 2007 2:24 pm
- Forum: JFreeChart
- Topic: Performance Suggestions
- Replies: 3
- Views: 5365
Thanks for the replies. Right now my DataFile class extends XYSeries. I'll look into extending XYDataset instead and skipping the series as suggested. In the mean time I think I found my source of the memory leak. I'm going to start a new topic and edit this post to include a link to the new one. ED...
- Wed Apr 18, 2007 8:34 pm
- Forum: JFreeChart
- Topic: Performance Suggestions
- Replies: 3
- Views: 5365
Performance Suggestions
I'd like some performance suggestions. I'm running into java.lang.OutOfMemoryError: Java heap space errors. I'm reading in a 7 Megabyte file which has 122 different data sets. Each set has 1,600 XYData points. When I open one of these files I read all data sets and run some very basic analysis on th...
- Mon Jan 15, 2007 8:41 pm
- Forum: JFreeChart
- Topic: OutOfMemoryError
- Replies: 2
- Views: 3342
- Fri Jan 12, 2007 7:15 pm
- Forum: JFreeChart
- Topic: OutOfMemoryError
- Replies: 2
- Views: 3342
OutOfMemoryError
Hello everyone. I am having problems with an application I wrote using jfreechart. I am opening up a file file and reading in 84 sets of data with 1600 data points each. All of this data stays in memory in 84 DataFile objects which extend Vector<DataPoint> so I can do stuff like this... DataFile dat...
- Thu Nov 30, 2006 4:15 pm
- Forum: JFreeChart
- Topic: Ensuring Annotations are visible
- Replies: 1
- Views: 3258
Ensuring Annotations are visible
Has anyone had to deal with annotations that should remain visible after the chart is zoomed in? I am trying to develop an application that plots some data and finds some points of interest (zeros that meet certain requirements). I want those values to be displayed on the plot. I have got this far. ...
- Wed Nov 29, 2006 8:26 pm
- Forum: JFreeChart
- Topic: Some Newbie Help
- Replies: 3
- Views: 3980
- Wed Nov 29, 2006 8:16 pm
- Forum: JFreeChart
- Topic: Some Newbie Help
- Replies: 3
- Views: 3980
Re: Some Newbie Help
One is to emphasize the X axis (at 0) ...make it thicker or something. If your chart is based on XYPlot, there are methods: setRangeZeroBaselineVisible(boolean); setRangeZeroBaselineStroke(Stroke); setRangeZeroBaselinePaint(Paint); ...that can be used to highlight the zero line (simulating a kind o...
- Wed Nov 29, 2006 3:54 pm
- Forum: JFreeChart
- Topic: Some Newbie Help
- Replies: 3
- Views: 3980
Some Newbie Help
Hello everyone. I just started using jfreechart for a little project I'm working on. It works great, nice and fast. There are only a couple of things I'd like to change on the chart I'm making. One is to emphasize the X axis (at 0) ...make it thicker or something. The other thing is to add some labe...