How to change the font size in a legend (iPlot) [message #63318] |
Mon, 03 November 2008 08:40  |
Tatcher
Messages: 7 Registered: September 2008
|
Junior Member |
|
|
Hej!
This object oriented graphics driving me mad. Why is it so hard to get
good looking graphics in IDL with a little bit of simple functionality
like zoom, ...? Why do I need ten lines of code to place a simple text
on a plot? ... I am used to Matlab that has a very simple syntax to
make plots, legends, annotations, ... but has a powerfull interface
like iPlot to zoom, change or annotate the plots.
But enough complaining I have to work and to live with IDL. I hope you
can help me. My question:
I use iPlot to plot my data and ixyouts (D. Fanning) to annotate the
Plot. The axis fonts (xtickfont=10.0, ytickfont=10.0) and the fonts in
ixyouts are set to 10 pt. How do I get "access" to the Legend to
change the font also there? How can I apply the following object to my
legend?
helvetica10pt = OBJ_NEW('IDLgrFont', 'Helvetica', SIZE = 10)
It would be great if you could give me a hint and to ease my pain ;)
Kind regards,
Christian
iplot,radius,Te_probe_1, $
title='Radial profiles of the electron temperature Te in
'+tokamak_experiment+' ('+scan_probe+')',$
xtitle='Radius / mm', ytitle='Te / eV',name='Probe 1: shot to
shot',$
sym_index=5,thick=2,color=[255,0,0],insert_legend=[0.0,-0.63 ],
dimensions=[800,600],$
user_interface=show_output,xtickfont_size=10.0,ytickfont_siz e=10.0,/
no_saveprompt
ixyouts,id,scan+' '+scan_probe,[0.48, 0.6, 0.0]
ixyouts,id,'Electron temperature Te',[-0.48, 0.6, 0.0]
export_tif,scan_probe+' '+scan+' '+'Te',dump_data
|
|
|