3

I have the following question:

Is there a Tool to make an contureplot in Java during the runtime out of large data arrays?

I found many post related to this question (also here contourplot question and another question) but I didn't found any solution to make a fast contourplot out of large arrays.

I have tried to do it with Jsci and also with jfreechart. With Jsci I got problems displaying the image and with jfreechart it takes veeeerrrrrryyyyy long to make a plot.

What I seek is somthing like matplotlib in python. And the image should look somehow like this

Community
  • 1
  • 1
Hans Dampf
  • 67
  • 1
  • 9

1 Answers1

3

You may be looking for XYBlockRenderer. The image shown in the API is from XYBlockChartDemo1 in the demo. It appears to render 10,000 blocks, 100 x 100, nearly instantly. If your experience varies, editing your question to include a sscce might reveal the problem.

trashgod
  • 203,806
  • 29
  • 246
  • 1,045
  • 1
    Thanks for the help. With XYBlockRenderer is works perfect. And I figured out that while using XYBlockRenderer i should create a 'final ArrayList>' from the input data or somethink simular to speed thinks up (factor 1000 or higher) – Hans Dampf Dec 19 '12 at 14:23
  • @HansDampf: +1 for caching; the demo (re-)calculates each block every time, and it lags noticeably for larger sizes. – trashgod Dec 19 '12 at 14:49
  • thanks for that. i have reworked the XYBlockRenderer-Example code to plot every 3D-Data-Array. Is it likely that I post it here somehow? – Hans Dampf Dec 20 '12 at 13:01
  • @HansDampf: I don't think the demos are licensed for distribution; same for derived works. The experimental demo mentioned [here](http://www.jfree.org/phpBB2/viewtopic.php?f=3&t=19281&p=55490&hilit=XYBlockRenderer#p55490) is no longer [extant](http://sourceforge.net/p/jfreechart/code/2522/tree/trunk/experimental/org/jfree/experimental/chart/). Of course, you can always [post](http://meta.stackexchange.com/q/17463/163188) your own original work. – trashgod Dec 20 '12 at 15:20