bugGNU Octave - Bugs: bug #60572, Matlabs now accepts subtitles in...

 
 

bug #60572: Matlabs now accepts subtitles in title function

Submitter:  Hartmut <hardy>
Submitted:  Mon 10 May 2021 04:36:19 PM UTC
   
 
Category:  Octave Function Severity:  1 - Wish
Priority:  3 - Low Item Group:  Feature Request
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 10 May 2021 10:46:08 PM UTC, comment #1: 

To do this right would also require implementing the subtitle() function.  This, in turn, also requires changing axes objects to add the new properties SubTitle, SubTitleFont, and SubTitleFontWeight.  In addition, as long as the axes object is being changed the TitleHorizontalAlignment property should be added for both Title and SubTitle objects.

Presumably subtitle.m would be mostly a copy of title.m so that wouldn't necessarily be hard.

I think the biggest challenge would be updating the placement routines for plots to account for this extra object between the top margin of the axes, the title object, and then the top of the plot canvas.




Rik <rik5>
Group administrator
Mon 10 May 2021 04:36:19 PM UTC, original submission:  

The following code now works in Matlab:


plot(1:10);
title('My title', 'my subtitle');


In Octave this throws an error, because the second string argument as subtitle is not supported, yet.

Matlab introduced this additional feature lately in Version R2020b.

I have already received quite a few Matlab scripts that use this feature, because it is a very convinient way to have a two line title. Yes, I know there are other ways to achive this, but people seem to quickly accept this new way of doing it, and I must say I do appreciate the easy way of doing it as well.

In Matlab they also introduced a dedicated function "subtitle" to achive the same thing. (I do not know about their underlying handles and graphics objects...)

Do we want to make Octave also accept this second subtitle string in the title function?

Hartmut <hardy>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by hardy (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-05-10 rik5 StatusNone Confirmed
        Release6.2.0 dev
    2021-05-10 jwe Severity3 - Normal 1 - Wish
        Priority5 - Normal 3 - Low
        Item GroupMatlab Compatibility Feature Request

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code