Showing 1 of 3 files from the diff.
Other files ignored by Codecov
appveyor.yml has changed.

@@ -190,7 +190,7 @@
Loading
190 190
191 191
192 192
def _make_viewer(figure, n_row, n_col, title, scene_size, offscreen,
193 -
                 interaction='trackball'):
193 +
                 interaction='trackball', antialias=True):
194 194
    """Triage viewer creation
195 195
196 196
    If n_row == n_col == 1, then we can use a Mayavi figure, which
@@ -229,11 +229,13 @@
Loading
229 229
                    for f in figure:
230 230
                        f.scene.interactor.interactor_style = \
231 231
                            tvtk.InteractorStyleTerrain()
232 -
            for figure in figures:
233 -
                for f in figure:
234 -
                    # on a non-testing backend, and using modern VTK/Mayavi
235 -
                    if hasattr(getattr(f.scene, 'renderer', None), 'use_fxaa'):
236 -
                        f.scene.renderer.use_fxaa = True
232 +
            if antialias:
233 +
                for figure in figures:
234 +
                    for f in figure:
235 +
                        # on a non-testing backend, and using modern VTK/Mayavi
236 +
                        if hasattr(getattr(f.scene, 'renderer', None),
237 +
                                   'use_fxaa'):
238 +
                            f.scene.renderer.use_fxaa = True
237 239
    else:
238 240
        if isinstance(figure, int):  # use figure with specified id
239 241
            figure = [mlab.figure(figure, size=scene_size)]
@@ -374,6 +376,9 @@
Loading
374 376
        camera.
375 377
    units : str
376 378
        Can be 'm' or 'mm' (default).
379 +
    antialias : bool
380 +
        If True (default), turn on antialiasing. Can be problematic for
381 +
        some renderers (e.g., software rendering with MESA).
377 382
378 383
    Attributes
379 384
    ----------
@@ -397,7 +402,8 @@
Loading
397 402
                 cortex="classic", alpha=1.0, size=800, background="black",
398 403
                 foreground=None, figure=None, subjects_dir=None,
399 404
                 views=['lat'], offset=True, show_toolbar=False,
400 -
                 offscreen='auto', interaction='trackball', units='mm'):
405 +
                 offscreen='auto', interaction='trackball', units='mm',
406 +
                 antialias=True):
401 407
402 408
        if not isinstance(interaction, string_types) or \
403 409
                interaction not in ('trackball', 'terrain'):
@@ -448,7 +454,7 @@
Loading
448 454
        del background, foreground
449 455
        figures, _v = _make_viewer(figure, n_row, n_col, title,
450 456
                                   self._scene_size, offscreen,
451 -
                                   interaction)
457 +
                                   interaction, antialias)
452 458
        self._figures = figures
453 459
        self._v = _v
454 460
        self._window_backend = 'Mayavi' if self._v is None else 'TraitsUI'
Files Coverage
surfer 75.06%
Project Totals (7 files) 75.06%
Notifications are pending CI completion. Waiting for GitHub's status webhook to queue notifications. Push notifications now.
682.2
TRAVIS_OS_NAME=linux
f8d7bsuc2l5kxo68
Untitled
682.1
TRAVIS_OS_NAME=linux
682.3
TRAVIS_OS_NAME=osx
1
coverage:
2
  precision: 2
3
  round: down
4
  range: "70...100"
5
  status:
6
    project:
7
      default:
8
        target: auto
9
        threshold: 0.01
10
    patch: false
11
    changes: false
12
comment:
13
  layout: "header, diff, sunburst, uncovered"
14
  behavior: default
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading