eseifert / gral

Free Java library for displaying plots
GNU General Public License v3.0
166 stars 32 forks source link

BarChart EPS/PDF exports seem broken on OS X #145

Open farleylai opened 8 years ago

farleylai commented 8 years ago

Unlike XYPlot/BoxPlot, bar charts with x and y labels are not rendered correctly in EPS/PDF as in PNG on OS X. The png is close to what is rendered in the interactive panel. PDF export typically does not work as expected but EPS is fine with XYPlot and BoxPlot. Any idea to fix this? It is quite necessary to have at least one vector image export to work as expected.

PS: this is just the sample bar chart with labels added.

bar.zip

seifertm commented 8 years ago

Without looking into the problem in detail, I suppose it is an error in VectorGraphics2D, which is a library that handles the export to vector formats. The current release of GRAL is (almost) two versions behind the latest VectorGraphics2D version. Therefore, I think this issue can only be fixed in the next GRAL release.

farleylai commented 8 years ago

Thanks for acknowledge this. Vector graphics export is definitely important for academic publications/printing. Nonetheless, PDF might deserve more attention since EPS tends to be significantly larger (especially with point shapes set) and PDF is more widely accepted on other platforms.

farleylai commented 7 years ago

Is there any update sooner or later? I am close to submit a paper in early April. If the next release of gral is still far, is it possible to use a newer version of VectorGraphics2D for the current release of gral 0.11?