MCPcopy
hub / github.com/dask/dask / to_svg

Method to_svg

dask/array/core.py:1792–1811  ·  view source on GitHub ↗

Convert chunks from Dask Array into an SVG Image Parameters ---------- chunks: tuple size: int Rough size of the image Examples -------- >>> x.to_svg(size=500) # doctest: +SKIP Returns ------- text: An sv

(self, size=500)

Source from the content-addressed store, hash-verified

1790 return store([self], [target], **kwargs)
1791
1792 def to_svg(self, size=500):
1793 """Convert chunks from Dask Array into an SVG Image
1794
1795 Parameters
1796 ----------
1797 chunks: tuple
1798 size: int
1799 Rough size of the image
1800
1801 Examples
1802 --------
1803 >>> x.to_svg(size=500) # doctest: +SKIP
1804
1805 Returns
1806 -------
1807 text: An svg string depicting the array as a grid of chunks
1808 """
1809 from dask.array.svg import svg
1810
1811 return svg(self.chunks, size=size)
1812
1813 def to_hdf5(self, filename, datapath, **kwargs):
1814 """Store array in HDF5 file

Callers 6

_repr_html_Method · 0.95
test_basicFunction · 0.80
test_errorsFunction · 0.80
test_3dFunction · 0.80

Calls 1

svgFunction · 0.90

Tested by 5

test_basicFunction · 0.64
test_errorsFunction · 0.64
test_3dFunction · 0.64