MCPcopy Create free account
hub / github.com/holoviz/hvplot / image

Method image

hvplot/plotting/core.py:1736–1781  ·  view source on GitHub ↗

Image plot You can use `image` to display for example geographic data with independent `latitude` and `longitude` fields and a third dependent field. Reference: https://hvplot.holoviz.org/ref/api/manual/hvplot.hvPlot.image.html Plotting options: https://hv

(self, x=None, y=None, z=None, colorbar=True, **kwds)

Source from the content-addressed store, hash-verified

1734 ]
1735
1736 def image(self, x=None, y=None, z=None, colorbar=True, **kwds):
1737 """
1738 Image plot
1739
1740 You can use `image` to display for example geographic data with independent `latitude` and
1741 `longitude` fields and a third dependent field.
1742
1743 Reference: https://hvplot.holoviz.org/ref/api/manual/hvplot.hvPlot.image.html
1744
1745 Plotting options: https://hvplot.holoviz.org/ref/plotting_options/index.html
1746
1747 Parameters
1748 ----------
1749 x : string, optional
1750 The coordinate variable along the x-axis
1751 y : string, optional
1752 The coordinate variable along the y-axis
1753 z : string, optional
1754 The data variable to plot
1755 colorbar: boolean
1756 Whether to display a colorbar
1757 **kwds : optional
1758 Additional keywords arguments are documented in :ref:`plot-options`.
1759 Run ``hvplot.help('image')`` for the full method documentation.
1760
1761 Returns
1762 -------
1763 :class:`holoviews:holoviews.element.Image` / Panel object
1764 You can `print` the object to study its composition and run:
1765
1766 .. code-block::
1767
1768 import holoviews as hv
1769 hv.help(the_holoviews_object)
1770
1771 to learn more about its parameters and options.
1772
1773 References
1774 ----------
1775
1776 - Bokeh: https://docs.bokeh.org/en/latest/docs/examples/topics/images/image.html
1777 - HoloViews: https://holoviews.org/reference/elements/bokeh/Image.html
1778 - Matplotlib: https://matplotlib.org/stable/tutorials/introductory/images.html
1779 - Plotly: https://plotly.com/python/imshow/
1780 """
1781 return self(x, y, z=z, kind='image', colorbar=colorbar, **kwds)
1782
1783 def rgb(self, x=None, y=None, z=None, bands=None, **kwds):
1784 """

Calls

no outgoing calls