Comment 2 for bug 947090

Revision history for this message
Anders Logg (logg) wrote : Re: [Bug 947090] Re: Plot windows get placed on top of each other

On Mon, Mar 05, 2012 at 01:09:01PM -0000, Joachim Haga wrote:
> I thought I did this last year, see revision
> <email address hidden>
>
> Doesn't it work? You're plotting separate functions (so the update logic
> doesn't kick in)? It may also be worth trying autoposition=False.
>
> If autoposition=False helps, then it might just be missing a test if the
> window is newly created or updated (if updated, the placement shouldn't
> be changed).

Thanks, autoposition=False helps.

I'm plotting like this:

  f = Expression("...")
  _f = Function(V)

  while t < T:

      f.t = t
      _f.interpolate(f)
      plot(_f)

So it should be a plain update.

--
Anders