comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » How to change the font size in a legend (iPlot)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
How to change the font size in a legend (iPlot) [message #63318] Mon, 03 November 2008 08:40 Go to previous message
Tatcher is currently offline  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
[Message index]
 
Read Message
Read Message
Previous Topic: Callable IDL
Next Topic: Re: simple .sav doesn't work

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 07:11:43 PDT 2025

Total time taken to generate the page: 1.20198 seconds