pl.switch_backend('svg') demo_ortho_slicer() 开发者ID:Hiccup,项目名称:nipy,代码行数:9,代码来源:test_ortho_slicer.py 示例11: test_plot_img_with_auto_cut_coords ▲点赞 1▼ deftest_plot_img_with_auto_cut_coords():importpylabaspl pl.switch_backend('svg') data = np.zeros((20,20,20...
plt.switch_backend(rcsetup._auto_backend_sentinel)returndict.__getitem__(self, key) 开发者ID:Relph1119,项目名称:GraphicDesignPatternByPython,代码行数:27,代码来源:__init__.py 示例8: switch_backend ▲点赞 6▼ # 需要导入模块: from matplotlib import pyplot [as 别名]# 或者: from matplotlib.py...
rcParams['axes.unicode_minus'] = False plt.switch_backend('agg') fig = plt.figure(figsize=figsize) fig.tight_layout() xvals = np.arange(min_val, max_val, step_size) plt.plot(xvals, [torch.exp(self.log_prob(x)) for x in xvals], *args, **kwargs) if log_xscale: plt.xscale...
plt.switch_backend("agg")# In case someone has loaded a different backend that will cause troubleext =".png"# Extension to use for plot filenamesspectrum = self.makeSpectrum()# Write directly to filewithlsst.utils.tests.getTempFilePath(ext)asfilename: spectrum.plot(numRows=4, doBackgroun...