Re: uitable does not accept placement in subplot

Markus Mützel <[email protected]>
Newsgroups gmane.comp.gnu.octave.general
Message-ID <trinity-ab7cecbf-4efb-48ac-b255-a47099da7599-1600857145690@3c-app-gmx-bap08>
Am 23. September 2020 um 12:06 Uhr schrieb "Jens Ruetten":
> Hi there,
> I am trying to show live data in a single plot window with multiple
> subplots, which update in regular intervals.
>
> So far so good, what i cannot manage is adding a table to visualize a list
> of discrete values in a subplot segments. Calling
>
> >>subplot(2,1,1);
> >> uitable(f, "Data", d, "RowName", row_names, "ColumnName", col_names);
>
> yields no reaction at all, when i try
>
> >>subplot(2,1,2);
> >> uitable(f, "Data", d, "RowName", row_names, "ColumnName", col_names);
>
> Octave returns the following error message:
>
> error: uitable: invalid parent handle.
> error: called from
>     __uiobject_split_args__ at line 37 column 7
>     uitable at line 207 column 13
>
>
>
> Any ideas for a workaround?
> Cheers
> ^j
>
>

I'm not sure what `f` is in your examples.
But afaict the parent for uitable must be a figure or uipanel.
`subplot` creates an axes. You can't have an axes object be the parent for `uitable`.

Try to adapt the 'Position' property of the uitable instead.

HTH,
Markus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.