[bug #68089] (image) imhist.m is broken since Octave 11.1.0 (due to colorbar.m)
Hartmut <[email protected]>
| Newsgroups | gmane.comp.gnu.octave.bugs |
|---|---|
| Message-ID | <[email protected]> |
Please use the bug tracker to post updates to a bug report. The mailing list is intended as a read-only notification stream. Info posted to this mailing list address won't appear in the tracker database where it is most useful.
Follow-up Comment #7, bug #68089 (group octave):
If really only a single image package function (i.e. imhist.m) would ever use
this new function call_colorbar, then I would suggest to have call_colorbar as
subfunction inside of the function imhist.m (or do subfunction in the same
m-file only work since sone newer core Octave version?). Only if some more
image package functions would also have the same problem with colorbar as
imhist.m, then we could have call_colorbar as private function in its own
m-file in the private subdirectory of the image package.
When I search for "colorbar" in the source code of the image package (inst
directory only), I get the following hits:
* imhist.m - line 165
-> this is our current problem in this bug report
* graycomatrix.m - lines 481, 491, 494-497, 507
-> all those calls to "colorbar" are without any options,
they are all just a plain "colorbar;"
Since ChatGPT told me that core Octave can have subfunctions in function
m-files since version 3.0 in 2007, a core Octave version that the image
package does not support any more, I would then suggest to add this
call_colorbar function as subfunction code to the very same m-file imhist.m in
the inst directory. What do you think, Avinoam?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68089>
_______________________________________________
Nachricht gesendet über Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaZ9r5QAKCRCqLAuaBUf3 Tl1zAP9cJY4D5B00eRkH9/4DUSz0yg1fH22+6qfZijSC7GtX/QEA+UR0Q+aobidv PXLc0+bUgIvu6a0xqgspjgebIePfMwk= =9211 -----END PGP SIGNATURE-----