Re: Re. MEMORY MANAGEMENT [message #8755] |
Wed, 23 April 1997 00:00 |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
John Slavich wrote:
>
> Hello newsgroup,
>
<snip>
> Does anyone have a good idea of how I can clean the heap memory within
> the widget without having to restart IDL?
>
Check out the new procedure HEAP_GC to do garbage collection on
heap variables. First, though, make sure you're freeing your
pointers!
> Since I'm writing this, I have another "simple" question. Is there any
> way to change the black background of a plot window?
If you want to use a different drawing color for the background of the
plot (useful if you have a predefined color table that you don't want
to mess with), you can use
plot, x, y, background=255, color=some_color
You probably want to set the foreground color also, in
case !p.color is 255!
Dave
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2200
La Jolla, CA 92037
[ UCSD Mail Code 0949 ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|