MCPcopy Create free account
hub / github.com/dask/dask / to_svg

Method to_svg

dask/array/core.py:1790–1809  ·  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

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