Skip to content

ValueError: x and y must have same first dimension, but have shapes (1,) and (306,) #4

@lategoodbye

Description

@lategoodbye

Hi,
i try to use iostat-cli (version 0.3.0) but i only get this stacktrace:

iostat-cli --data 5.19_SDCIT_patch_nooptimize_download_success.iostat.log --disk mmcblk1 --fig-output success.png plot
Traceback (most recent call last):
File "/home/beep/.local/bin/iostat-cli", line 8, in
sys.exit(main())
File "/home/beep/.local/lib/python3.10/site-packages/iostat/main.py", line 217, in main
plotter.plot()
File "/home/beep/.local/lib/python3.10/site-packages/iostat/plotter.py", line 202, in plot
self.plot_device(datetime_data)
File "/home/beep/.local/lib/python3.10/site-packages/iostat/plotter.py", line 188, in plot_device
self.subplots[name].plot(x, values, label=column)
File "/home/beep/.local/lib/python3.10/site-packages/matplotlib/axes/_axes.py", line 1635, in plot
lines = [*self._get_lines(*args, data=data, **kwargs)]
File "/home/beep/.local/lib/python3.10/site-packages/matplotlib/axes/_base.py", line 312, in call
yield from self._plot_args(this, kwargs)
File "/home/beep/.local/lib/python3.10/site-packages/matplotlib/axes/_base.py", line 498, in _plot_args
raise ValueError(f"x and y must have same first dimension, but "
ValueError: x and y must have same first dimension, but have shapes (1,) and (306,)

What's wrong here?
Thanks in advance

5.19_SDCIT_patch_nooptimize_download_success.iostat.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions