Re: plot in draw widget [message #10126] |
Sun, 19 October 1997 00:00 |
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/
|
|
|