Density Plot Chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).

Density Plot Chart

Postby KeVas » Thu Jan 25, 2018 11:00 pm

Hello everyone!

So, I want to create Density Plot, using 2D array as a data ( array[150][150]). Is it possible to get that kind of plot like in Mathematica? I was trying to do this on my own by using GraphicsContext in JavaFX and drawing line by line, but it's so buggy.


T1 and T2 are:

Thanks for help. :)

Btw, ColorFunction(GrayLevel) in this case isn't that important.

@EDIT - Maybe XYBlockRenderer class will do the trick?
Posts: 1
Joined: Thu Jan 25, 2018 10:45 pm

Re: Density Plot Chart

Postby david.gilbert » Wed Jan 31, 2018 9:26 pm

Yes, XYBlockRenderer would do the job. In the demos you can try and also

David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited
JFreeChart Project Leader
Posts: 11664
Joined: Fri Mar 14, 2003 10:29 am

Return to JFreeChart

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 7 guests