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

Home » Public Forums » archive » Re: plot in draw widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: plot in draw widget [message #10126] Sun, 19 October 1997 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
R. Bauer writes:

> Here is another problem I have with my draw_widget,
>
> If I use different sizes of a draw widget each thing of the plot will be
> scaled whithout the plotsymbol.
>
> What can I do to get resizeable plotsymbols, in this case I don't like
> to use symsize.

Unless you are using the new object graphics (which gives you
symbol and text scaling for free), I don't think you have any
choice but to use the SymSize keyword to change the symbol size
in resizeable graphics windows.

But calculating the proper symbol (and text) size for resizeable
graphics windows is made easier by using the STR_SIZE function
from my web page. This function calculates the proper character
and symbol size to keep characters in proportion as the window
changes size. For example, you can use it like this:

Window, XSize=300, YSize=300
niceSize = Str_Size('This is a standard string', 0.35)
Plot, Findgen(11), Charsize=niceSize, PSym=4, Symsize=niceSize

Window, XSize=500, YSize=500
niceSize = Str_Size('This is a standard string', 0.35)
Plot, Findgen(11), Charsize=niceSize, PSym=4, Symsize=niceSize

Cheers,

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Previous Topic: Memory Hard Limits in IDL5?
Next Topic: plot in draw widget

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

Current Time: Fri Oct 10 04:36:52 PDT 2025

Total time taken to generate the page: 0.24293 seconds