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

Method to_svg

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

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