@@ -2226,7 +2226,7 @@ def update(self, modes: OneDArray, data: np.ndarray) -> ktensor:
2226
2226
2227
2227
return self
2228
2228
2229
- def vis ( # noqa: PLR0912, PLR0913
2229
+ def viz ( # noqa: PLR0912, PLR0913
2230
2230
self ,
2231
2231
plots : Optional [Union [tuple , list ]] = None ,
2232
2232
show_figure : bool = True ,
@@ -2295,9 +2295,9 @@ def vis( # noqa: PLR0912, PLR0913
2295
2295
>>> np.random.seed(1)
2296
2296
>>> K = ttb.ktensor.from_function(np.random.random_sample, (2, 3, 10), 2)
2297
2297
2298
- Use plot K using default behavior K.vis ()
2298
+ Use plot K using default behavior K.viz ()
2299
2299
2300
- >>> fig, axs = K.vis (show_figure=False) # doctest: +ELLIPSIS
2300
+ >>> fig, axs = K.viz (show_figure=False) # doctest: +ELLIPSIS
2301
2301
>>> plt.close(fig)
2302
2302
2303
2303
Define a more realistic plot fuctions with x labels,
@@ -2314,7 +2314,7 @@ def vis( # noqa: PLR0912, PLR0913
2314
2314
... ax.semilogx(np.logspace(-2, 2, v.shape[0]), v)
2315
2315
... ax.set_xlabel("$E$, [kJ]")
2316
2316
>>> plots = [mode_1_plot, mode_2_plot, mode_3_plot]
2317
- >>> fig, axs = K.vis (
2317
+ >>> fig, axs = K.viz (
2318
2318
... show_figure=False,
2319
2319
... plots=plots,
2320
2320
... rel_widths=[1, 2, 3],
0 commit comments