Group Abstract Group Abstract

Message Boards Message Boards

0
|
1.2K Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Custom TableView Labels

Posted 1 year ago

Is there a way to add row and column heading labels in TableView to replace the 1,2,3 etc?

POSTED BY: gary brinton
3 Replies

I can't open "Header" under options for TableView. I can select any other option but Header. It is highlighted in black and not selectable.

POSTED BY: gary brinton
Posted 1 year ago

Yeah, I noticed that. The function is still marked Experimental, so a little less polish is probably to be expected. But there are several other functions (like plots and grids) that have options to specify horizontal and vertical "things", and so if you're familiar with those, it's pretty easy to predict how the Header option will work.

POSTED BY: Eric Rimbey
Posted 1 year ago

In the documentation for TableView, you'll find an option called Headers. It works like you'd expect if you're familiar with the general pattern. For example:

TableView[RandomReal[1, {4, 4}], Headers -> {{2, 4, 8, 16}, {"a", "bb", "ccc", "dddd"}}]
POSTED BY: Eric Rimbey
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard