octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pretty print in Octave


From: Carnë Draug
Subject: Re: pretty print in Octave
Date: Wed, 3 Jul 2013 21:23:09 +0100

On 3 July 2013 19:51, John W. Eaton <address@hidden> wrote:
> On 07/03/2013 02:43 PM, Carnë Draug wrote:
>>
>> I'm at the moment in need of some code to pretty print some tables to
>> Octave prompt, something like what `pkg list` is currently doing.
>> `whos' also prints a nice table but a different one and maybe there's
>> other examples but I can't think of one right now. I'm not aware of
>> any function to make such tables, and seems like Matlab doesn't have
>> one.
>>
>> Would you guys think a general purpose pretty print function would be
>> useful? And if so, anyone has any tips on what would be a good API
>> example to follow?
>
> Does the function list_in_columns help, or do you need variable-width
> columns?

Not really, I was looking for variable width. What I have is a struct
array and would have some fields used as headers. Some fields are a
logical scalar and others are small sentences.

On 3 July 2013 20:00, Pascal Dupuis <address@hidden> wrote:
> Have a look at the "display" function in "dataframe"

Writing the code for my needs is not the problem. My question was more
on the lines of should I bother to try and write something of more
general use for the functions that want to display nicely formatted
tables? And if so, what would the best interface for it? My case is
very simple and when I start thinking of all the different
possibilities users may have, my brain starts to hurt :p

Carnë


reply via email to

[Prev in Thread] Current Thread [Next in Thread]