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

Method to_svg

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

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