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

Home » Public Forums » archive » Using thick=2 increases FG plot time by 25x?!?!
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Using thick=2 increases FG plot time by 25x?!?! [message #86592] Thu, 21 November 2013 10:35 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
I have the following code to plot some data (~25000 points) using the
PLOT() function:

tic
po = plot(fo, ro, $
xrange=xrange, $
yrange=[-0.005,0.025], $
xticklen = ticklen, $
yticklen = ticklen, $
xtickfont_size = 9, $
ytickfont_size = 9, $
color = 'red', $
thick = 1 ) ; <<<---****
pn = plot(fn, rn, $
color='green', $
symbol = 'diamond', $
/overplot)
pz = plot(po.xrange,[0,0], $
linestyle='dashed', $
/overplot)
pz.order, /send_to_back
toc

When I run this I get the plot and the following output from toc:

% Time elapsed: 1.1067200 seconds.


I then changed *ONLY* the value of thick to "thick = 2", recompiled the
procedure, and ran it. I got the following:

% Time elapsed: 25.625711 seconds.

Am I doing something stupidly wrong here, or is this a known bug?

IDL> print, !version
{ x86_64 linux unix linux 8.2.2 Jan 23 2013 64 64}


cheers,

paulv


p.s. The first time this happened I thought my computer had karked it so
I did the ctrl-C dealy after about 10-15 seconds and got the following:

^C^C^C^C^C^C^C^C
Interrupted at: IDLITVISDATASPACE::DRAW 2389
/usr/local/exelis/idl82/lib/itools/framework/idlitvisdataspa ce__define.pro

IDL> .reset_session
% Interrupted at: IDLITVISDATASPACE::DRAW 2389
/usr/local/exelis/idl82/lib/itools/framework/idlitvisdataspa ce__define.pro
% Internal error: The Interpreter stack is not empty on exit.
[Message index]
 
Read Message
Read Message
Previous Topic: How to find (where) the first non NAN value in an array?
Next Topic: !p.multi , colorbar&set_viewport ?

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

Current Time: Wed Oct 08 13:32:05 PDT 2025

Total time taken to generate the page: 0.00432 seconds