MCPcopy Create free account
hub / github.com/danjgale/surfplot / show

Method show

surfplot/plotting.py:524–551  ·  view source on GitHub ↗

View Brainspace vtk surface rendering Notes ----- This only shows the plot created by brainspace.plotting.surface_plotting.plot_surf, and will not include colorbars created by :func:`~surfplot.plottong.Plot.plot` or any other matplotlib components.

(self, embed_nb=False, interactive=True, transparent_bg=True, 
             scale=(1, 1))

Source from the content-addressed store, hash-verified

522 return fig
523
524 def show(self, embed_nb=False, interactive=True, transparent_bg=True,
525 scale=(1, 1)):
526 """View Brainspace vtk surface rendering
527
528 Notes
529 -----
530 This only shows the plot created by
531 brainspace.plotting.surface_plotting.plot_surf, and will not include
532 colorbars created by :func:`~surfplot.plottong.Plot.plot` or any
533 other matplotlib components.
534
535 Parameters
536 ----------
537 embed_nb : bool, optional
538 Whether to embed figure in notebook. Only used if running in a
539 notebook. Default: False
540 interactive : bool, optional
541 Whether to enable interaction, default: True
542 scale : tuple, optional
543 Amount to scale the surface plot, default: (1, 1)
544
545 Returns
546 -------
547 Ipython Image or vtk panel
548 Brainspace surface plot rendering
549 """
550 p = self.render(offscreen=False)
551 return p.show(embed_nb, interactive, scale=scale)

Callers 15

plot_surfFunction · 0.80
plot_example_02.pyFile · 0.80
plot_example_01.pyFile · 0.80

Calls 1

renderMethod · 0.95

Tested by

no test coverage detected