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.
      c0bc5e9b
  2. 25 Sep, 2017 1 commit
  3. 02 Apr, 2017 1 commit
  4. 13 Jan, 2016 1 commit
  5. 14 Jun, 2015 1 commit
  6. 04 Apr, 2015 1 commit
  7. 16 Jul, 2014 1 commit
  8. 07 Apr, 2014 1 commit
  9. 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 ...
      797ae3a1