Aligning plotting region

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

Aligning plotting region

Post by Andrew » Thu Apr 19, 2001 1:22 pm

I would like to be able to align the left and right
hand sides of 3 separate plots that are presented
in a vertical column. This is to allow direct visual comparison
at the same x value across all graphs. The problem I
have is that with different y axis lables and ranges on the left,
the width of the vertical axis varies, (similarly) as does the
width of the legends on the right.

They all have exactly the same min/max x axis values,
but I must put them on different plots because you
can't mix plot types on 1 plot (and their ranges
are very different anyway).

Is there a simple way to force them all to be vertically aligned
on the left and right ? I was thinking sbout putting the
plot regions all in the same panel, or precalculating the largest
common plot region width, vertical axis, and legend BEFORE drawing
anything, but that didn't look like a simple change.

Thanks for a nice piece of software.
Andrew

David Gilbert

RE: Aligning plotting region

Post by David Gilbert » Tue Apr 24, 2001 12:58 pm

Hi Andrew,

Unfortunately there is no easy way to do what you require.

I understand the requirement though...I've registered a Feature Request on SourceForge (#418539) so I don't forget about this, and some time in the future hopefully I will find a way to make JFreeChart handle this.

Regards,

DG.

Locked