[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44119] image package: imformats missing prett
From: |
H. G. |
Subject: |
[Octave-bug-tracker] [bug #44119] image package: imformats missing pretty print |
Date: |
Fri, 30 Jan 2015 21:51:43 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0 |
Follow-up Comment #4, bug #44119 (project octave):
I have had a look what Matlab does on this case (a call to imformats without
any input or output arguments). And it outputs a huge text table with all
existing information.
If we try to do this (I did) this results in a table that is much wider then
usual computer screens, so it is not at all "pretty" any more.
So I would suggest for this case, to only output a simple list of the
supported file format extensions.
To achive this, we could substitute todays line 81 of fileformats.m with the
following code:
disp('The following file format extensions are currently supported:');
form = formats;
for m=1:length(form)
if(length(form(m).ext) >=2) % if more then one file format goes onto a
line
for n = 1:length(form(m).ext)-1
form(m).ext{n} = [form(m).ext{n}, ', ']; % insert commas
inbetween them
endfor
endif
erg(m,1:length(cell2mat(form(m).ext)))=cell2mat(form(m).ext);
endfor
disp(erg)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44119>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #44119] image package: imformats output (struct array) not displayed properly, H. G., 2015/01/29
- [Octave-bug-tracker] [bug #44119] image package: imformats missing pretty print, Carnë Draug, 2015/01/29
- [Octave-bug-tracker] [bug #44119] image package: imformats missing pretty print, H. G., 2015/01/29
- [Octave-bug-tracker] [bug #44119] image package: imformats missing pretty print, Carnë Draug, 2015/01/29
- [Octave-bug-tracker] [bug #44119] image package: imformats missing pretty print,
H. G. <=
- [Octave-bug-tracker] [bug #44119] image package: imformats missing pretty print, Carnë Draug, 2015/01/31
- [Octave-bug-tracker] [bug #44119] image package: imformats missing pretty print, H. G., 2015/01/31
- [Octave-bug-tracker] [bug #44119] image package: imformats missing pretty print, Carnë Draug, 2015/01/31
- [Octave-bug-tracker] [bug #44119] image package: imformats missing pretty print, Carnë Draug, 2015/01/31