[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: axis label fontsize vs. tick label size
- Subject: Re: axis label fontsize vs. tick label size
- From: Martin Schultz <mgs(at)io.harvard.edu>
- Date: Mon, 21 Jun 1999 09:37:59 -0400
- Newsgroups: comp.lang.idl-pvwave
- Organization: Harvard University
- References: <7kgug1$1ph$1@nnrp1.deja.com>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:15276
noymer@my-deja.com wrote:
>
> I am making some simple xy scatterplots. I would like to make
> the y-axis label bigger (ie larger fontsize), but I don't want
> to change the size of the tick labels.
>
> YCHARSIZE=xxx seems to change both in my experiments. Is that
> correct?
>
> One possibility would be to add the axis label separately using
> XYOUTS or ANNOTATE, but in this case the text-box would have to
> be rotated to make it look like a y-axis label. For this reason
> it seems like a lot of work, though maybe it's not so bad as it
> seems?
>
Well, it's not that bad!
To give you a fairly general solution:
; create your plot
plot,findgen(10) ; ...other keywords
; get coordinates for label
cx = !x.window[0] - 0.06 ; value depends on width of
; tickmark labels
cy = total(!y.window)/2.
; produce the ytitle
xyouts,cx,cy,'My title',/NORM,charsize=2., $
align=0.5,orientation=90
Good luck,
Martin
--
|||||||||||||||\\\\\\\\\\\\\-------------------///////////////|||||||||||||||
Martin Schultz, DEAS, Harvard University, 29 Oxford St., Pierce 109,
Cambridge, MA 02138 phone (617) 496 8318 fax (617) 495 4551
e-mail mgs@io.harvard.edu web http://www-as/people/staff/mgs/