Hello,
Is it possible to have subscripts, superscripts and Greek letters when I label the
x and y axes?
Thanks,
Jane
subscript & superscript
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
No. You could probably modify the Axis class to use an AttributedString as the axis label.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


-
- Posts: 35
- Joined: Tue Mar 28, 2006 1:10 am
- Location: La Jolla
- Contact:
Re: subscript & superscript
Hi, Jane,
http://www.alanwood.net/unicode/supersc ... ripts.html
http://groups.google.com/group/comp.lan ... c117b915c1
I say "limited" because, as I recall, only digits and a few other characters are available as superscripts & subscripts. That was good enough for our purposes, but it may not be for yours. I would hope that you could get Greek letters via Unicode as well, but I don't know.
Peace,
--Carl[/url]
There is a way to get limited superscripts and subscripts with Unicode; we've had success following the strategies outlined at these links:Jane wrote: Is it possible to have subscripts, superscripts and Greek letters when I label the x and y axes?
http://www.alanwood.net/unicode/supersc ... ripts.html
http://groups.google.com/group/comp.lan ... c117b915c1
I say "limited" because, as I recall, only digits and a few other characters are available as superscripts & subscripts. That was good enough for our purposes, but it may not be for yours. I would hope that you could get Greek letters via Unicode as well, but I don't know.
Peace,
--Carl[/url]