Hello -
I am using Jfreechart's XYPlot and notice that often the tick mark labels spill over the end.. is there anyway to prevent this (ie add some sort of border)?
see screenshot https://ibb.co/gJQm6v. Notice the number 10 in both axes.
I've tried calling difference combinations of
setLowerMargin and setUpperMargin() on both the range and domain axes, but it doesn't seem to make a difference.
Thanks in advance.
Tick Labels on XYPlot getting truncated
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Tick Labels on XYPlot getting truncated
If you want to add a fixed amount of white space around the edges of the plot, you can use the setInsets(..) method in the Plot class:
http://www.jfree.org/jfreechart/api/jav ... gleInsets-
http://www.jfree.org/jfreechart/api/jav ... gleInsets-
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
Re: Tick Labels on XYPlot getting truncated
thanks david.. that worked.
tom.
tom.