It seems that whenever I try to draw ViewCell, ViewDrift, ViewField to a same TCanvas there will only be two of them. It works fine if I try any combinations of two of them. I tried the Example wire2d in Elmer and only get the view of geometry and drift line, also in my own code the same thing happens.
Any clues…?
But it may indeed not work out of the box in other situations. If you have another example where it doesn’t work, please post a minimal working version and I’ll take a look…
By default, each View... object uses its own canvas. You need to set the canvas to be painted on explicitly (using the method SetCanvas) if you want to combine multiple plots on the same canvas.