HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/anaconda3/Lib/site-packages/holoviews/tests/plotting/plotly/test_figuresize.py
from holoviews.element import Points

from .test_plot import TestPlotlyPlot


class TestImagePlot(TestPlotlyPlot):

    def test_image_state(self):
        img = Points([(0, 0)]).opts(width=345, height=456)
        state = self._get_plot_state(img)

        self.assertEqual(state["layout"]["width"], 345)
        self.assertEqual(state["layout"]["height"], 456)