Re: Slow object graphics when plotting multiple lines [message #92979 is a reply to message #92975] |
Mon, 04 April 2016 13:10  |
Yngvar Larsen
Messages: 134 Registered: January 2010
|
Senior Member |
|
|
On Monday, 4 April 2016 19:15:11 UTC+2, alx wrote:
> Le lundi 4 avril 2016 18:51:01 UTC+2, Yngvar Larsen a écrit :
>> How? The documentation of PLOT() indicates something else (unless I misunderstood you):
> IDL> pl = plot(/TEST)
> IDL> pl1 = plot([50,100], [-0.5,0.5], COLOR='red', /CURRENT, POSITION=pl.POSITION, XRANGE=pl.XRANGE, YRANGE=pl.YRANGE)
Thanks. Interesting. This seems to do exactly what the documentation says /OVERPLOT should do, by faking a shared axis? (typical direct graphics trick!) And completely contrary to the tip I cited from the /CURRENT docs:
"Tip: If you want your graphic to share the same axes as an existing graphic, you should use the OVERPLOT keyword instead. "
Also, at least on my machine, /CURRENT is 4x slower than the /OVERPLOT in OP's loop case, even with hardcoded range/position according to your suggestion. Strange.
--
Yngvar
|
|
|