1. 06 Dec, 2017 1 commit
    • Cory Quammen's avatar
      Update Python view scripts for matplotlib 2.0 · c0bc5e9b
      Cory Quammen authored
      The defaults in matplotlib 2.0 have changed, leading to a change in
      the Python view test outputs. Use backward-compatible style to make
      the test pass on systems with newer matplotlib.
  2. 15 Nov, 2017 1 commit
  3. 02 Apr, 2017 1 commit
  4. 29 Sep, 2016 1 commit
    • Aron Helser's avatar
      Fix: Python3 compatibility, wrapping and tests · 6c068c30
      Aron Helser authored
      Change use of python in ParaView to be Python3 compatible.
      The most common changes:
      print "foo" => print ("foo")
      raise RuntimeError, "failed" => raise RuntimeError("failed")
      next() => __next__()
      import of relative submodules is disallowed.
      use import __future__ to get python3 behavior in python2
      Spot fixes:
      map() returns an iterable, not a list
      type str now has attr __iter__, so looks iterable.
  5. 16 Jul, 2014 4 commits
  6. 12 Dec, 2013 1 commit
    • Cory Quammen's avatar
      Added Python view that enables plotting data with matplotlib · 797ae3a1
      Cory Quammen authored
      This view is compiled only if Python is enabled.
      The Python view accepts a Python script that can be used to plot
      data in a matplotlib figure. The script must contain two functions
      described below:
      - setup_data(view)
        The setup_data function supplies the current Python view as an
        argument. This is the native VTK object on which all methods that
        have been wrapped in Python may be called. The Python view supplies
        some methods that can be used to select which data arrays to
        transfer from the server side to the client side (all rendering is
        performed on the client). No arrays are selected by default.
      - render(view, figure):
        The render function supplies the current Python view as the first
        argument and a matplotlib FigureCanvasAgg as the second argument.
        The render function is typically expected to create one or more
        subplots in the figure that will be used for rendering.
      The functions setup_data and render may be defined in ...