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

Home » Public Forums » archive » Rendering method software vs hardware
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: Rendering method software vs hardware [message #89767 is a reply to message #89764] Wed, 03 December 2014 02:02 Go to previous messageGo to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Tuesday, December 2, 2014 7:48:09 PM UTC+1, Chris Torrence wrote:
> On Tuesday, December 2, 2014 7:35:46 AM UTC-7, Helder wrote:
>> Ok, so I spent some time looking for the time draining procedure and found that I set a lot of graphic properties after changing image. This results in a huge waste of time. I'll try to make some sample code to show what I'm having problems with and post tomorrow some code+results.
>> At the moment, it takes .5 sec to get images and plots shown and 2.5 seconds to set a bunch of properties (hide, color, gridstyle,...)
>>
>>
>> Cheers, Helder
>
> Hi Helder,
>
> Another option is to disable redraws until all of your properties are set. For example:
>
> p = PLOT(/TEST)
> p.Refresh, /DISABLE
> p.COLOR = 'red'
> p.LINESTYLE = 'dashed'
> ...
> p.Refresh
>
> Hope this helps!
>
> Cheers,
> Chris
> Exelis

Hi Chris,
that worked brilliantly. Thanks.
Question:
when I set:
p.color = 'red' or whatever else...
shouldn't the plot procedure only replot if p.color ne 'red'? In other words, only update a property if this property is different from the previously set property.
This would save quite some time and there would be no need for the refresh, /disable option.

Or is this not that easy?

Cheers,
Helder
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: make all array values equal to zero
Next Topic: extraction of harmonic terms from FFT in idl

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

Current Time: Wed Oct 08 17:54:36 PDT 2025

Total time taken to generate the page: 0.00363 seconds