mindelec.vision.print_graph_1d
- mindelec.vision.print_graph_1d(name, x, path, clear=True)[source]
Draw 1d scatter image
- Parameters
name (str) – name of the graph.
x (numpy.ndarray) – data to draw (shape (dim_print,)).
path (str) – save path of the graph.
clear (bool) – specifies whether clear the current axes. Default: True.
- Supported Platforms:
Ascend
Examples
>>> import numpy as np >>> from mindelec.vision import print_graph_1d >>> name = "output.jpg" >>> x = np.ones(10) >>> path = "./graph_1d" >>> clear = True >>> print_graph_1d(name, x, path, clear)