das-developers / das2java

The original das2 library. Provides interactive publication-ready 2-D plotting
https://das2.org
GNU Lesser General Public License v3.0
4 stars 0 forks source link

excessive clipping in DasPlot of title, inconsistent clipping #50

Closed jbfaden closed 1 year ago

jbfaden commented 1 year ago

James and I were looking at where the plot title is clipped by the yaxis, but then the yaxis doesn't really use the real estate. We think there should be an option to allow components to be more willing to overlap one another.

James also pointed out that while the DasAxis has a nice DEBUG_GRAPHICS mode, the DasPlot doesn't have this feature. Other components, like the DasAnnotation, would be well-served by this too.

jbfaden commented 1 year ago

DasPlot has DEBUG_GRAPHICS now, which draws a box around the plot title.

jbfaden commented 1 year ago

This is the control:

private static final boolean DEBUG_GRAPHICS = System.getProperty("das2.graph.dasplot.debuggraphics","false").equals("true")
jbfaden commented 1 year ago

I've added this for the DasAnnotation object as well.

jbfaden commented 1 year ago

DasPlot has a new control, longTitles, which when set to true will all the title to overlap with the Y axis.