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

Home » Public Forums » archive » Slow object graphics when plotting multiple lines
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Slow object graphics when plotting multiple lines [message #92954] Fri, 01 April 2016 05:51 Go to previous message
steven.abel is currently offline  steven.abel
Messages: 13
Registered: April 2016
Junior Member
I am new to object graphics and struggling to speed up a simple plot that contains multiple lines.

Here is an example that plots 200 lines - the object graphics version is very slow compared to the direct graphics version.

;create some dummy data
x = replicate(0.,11,200)
y = x
FOR i=0,199 DO x[*,i] = FINDGEN(11)
FOR i=0,199 DO y[*,i] = RANDOMN(seed,11)

;plot in direct graphics
plot,[0,10],[-5,5],/nodata,yrange=[-5,5],ystyle=1
FOR i=0,199 DO oplot,x[*,i],y[*,i]

;plot in object graphics
w = window()
w.REFRESH, /DISABLE
p = plot([0,10],[-5,5],/nodata,yrange=[-5,5],/current)
FOR i=0,199 DO !NULL=plot(x[*,i],y[*,i],/overplot)
w.REFRESH


Is there any way to speed this up in object graphics?

Thanks

Steve
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: JSON file manipulation in idl
Next Topic: How to create an image with more than one gaussian psfs?

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

Current Time: Wed Oct 08 09:09:02 PDT 2025

Total time taken to generate the page: 0.00501 seconds