vmin and vmax ignored in viper_dolfin
Bug #922717 reported by
Martin Sandve Alnæs
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Viper |
Fix Released
|
Undecided
|
Johan Hake |
Bug Description
In the non-dolfin version of plot, vmin and vmax can be passed. This is a crucial feature for e.g. animations over timesteps. In the dolfin version of plot, those are simply ignored in dolfin_update() in viper_dolfin.py. Example:
from dolfin import *
import time
mesh = UnitSquare(10,10)
e = Expression(
for i in range(10):
e.k = (i+1)/10.0
figure(1)
plot(e, mesh=mesh, vmin=-1.0, vmax=+1.0)
time.sleep(0.1)
interactive()
Related branches
Changed in fenics-viper: | |
status: | New → Won't Fix |
Changed in fenics-viper: | |
status: | Won't Fix → Fix Committed |
assignee: | nobody → Johan Hake (johan-hake) |
Changed in fenics-viper: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Can you supply a patch? (Or better yet, just push the fix.)
--
Anders
On Fri, Jan 27, 2012 at 05:09:26PM -0000, Martin Sandve Alnæs wrote: "k*x[0] *x[1]", k=0.0)
> Public bug reported:
>
> In the non-dolfin version of plot, vmin and vmax can be passed. This is
> a crucial feature for e.g. animations over timesteps. In the dolfin
> version of plot, those are simply ignored in dolfin_update() in
> viper_dolfin.py. Example:
>
> from dolfin import *
> import time
> mesh = UnitSquare(10,10)
> e = Expression(
> for i in range(10):
> e.k = (i+1)/10.0
> figure(1)
> plot(e, mesh=mesh, vmin=-1.0, vmax=+1.0)
> time.sleep(0.1)
> interactive()
>
> ** Affects: fenics-viper
> Importance: Undecided
> Status: New
>