Plotting DG Functions in 1D

Issue #154 wontfix
Chris Richardson created an issue

Related to issue #59, DG functions also plot badly in 1D. e.g.

mesh = UnitIntervalMesh(10)
DG0 = FunctionSpace(mesh, "DG", 0)
F = interpolate(Expression("sin(10*x[0])"), DG0)
plot(F, interactive=True)

Comments (2)

  1. Jan Blechta

    @chris_richardson What do you mean plot badly in 1D? Everything gets interpolated onto CG1 in arbitrary dimension before plotting.

  2. Prof Garth Wells

    Looks ok on fine mesh.

    Making it look 'good' would require supporting cell-wise plotting in the VTK wrapper, which I don't think is worth the effort.

  3. Log in to comment