NG: bring_to_front doesn't always work [message #89070] |
Tue, 22 July 2014 07:21  |
dg86
Messages: 118 Registered: September 2012
|
Senior Member |
|
|
Dear Folks,
In overlaying plots created with PLOT(), I've noticed that the ORDER
method sometimes doesn't work, or at least not completely. The plots in
question are reasonably complicated, and I haven't found a minimal
example. The idea is
p1 = PLOT(x1, y1)
p2 = PLOT(x2, y2, symbol='o', linestyle='',/sym_filled,sim_color='black',sim_fill_color='w hite',over=p1)
p3 = PLOT(x3, y3, over = p1)
p2.order, /bring_to_front
My goal is to have the filled circles from p2 appear over the curve from p3.
Instead, and only sometimes, the curve from p3 obscures some, but not all, of the
filled circles from p2.
This almost certainly is a bug. I'm running IDL 8.3 and have seen similar
behavior under linux and MacOS.
Changing the order of the PLOT commands would fix the problem,
but would make my plotting script less easy to read.
Is there an "in-place" workaround? Will this be fixed in 8.4?
Many thanks,
David
|
|
|