gral icon indicating copy to clipboard operation
gral copied to clipboard

Density and Contour Plots, and multiplot

Open mleoking opened this issue 9 years ago • 1 comments

First of all I really like gral. I investigated many Java plotting libs and found only two of them are attractive and interesting: XChart and Gral. I tried to use both in my research, but had to give up and use Gnuplot instead (I even created a java API for it https://github.com/mleoking/JavaGnuplotHybrid). Because both of xchart and gral lack the two important features:

  1. Density and Contour Plots

http://reference.wolfram.com/mathematica/tutorial/DensityAndContourPlots.html

In academic publications, Density and Contour Plots are frequently used as a better replacement for 3D plots. Density and Contour Plots map the value of the third axis (z-axis) to different colors on a 2D figure.

Here is a example contour and density plot:

68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f353736333735312f323530313133302f31626463636238302d623336392d313165332d396533632d6337393530346433326333362e706e67

This type of plot can complete the plot functions of gral. And it is easier to implement and use than 3D charts.

  1. Multiplot

http://www.gnuplot.info/demo_svg_5.0/layout.html

Multiplot is another essential feature for producing high-quality academic graphs. Here is an example multiplot:

zoom_plot

Multiplot has to be done natively by a plotting lib rather using photo processing tools to combine two graphs. Because those photo processing tools will zoom the size of the label in the axes when zooming a sub-graph. Only native support from a plotting lib can keep the size of the axis labels of a sub-graph to the same as that of the main-graph when zooming a sub-graph.

I really hope gral can put these two very important features in the agenda.

mleoking avatar Apr 03 '16 03:04 mleoking

First of all, thanks a lot for your detailed feedback! Contour plots have been on the unofficial agenda for some time already. I would also like to see multi-plots in GRAL, and this feature has been requested before as well. We'll try to implement both, but unfortunately, I can't give a time frame yet.

eseifert avatar Apr 03 '16 09:04 eseifert