bugGNU Octave - Bugs: bug #32332, feature request: mesh() should...

 
 

bug #32332: feature request: mesh() should have labels parallel to axes

Submitter:  Michael Godfrey <godfrey>
Submitted:  Thu 03 Feb 2011 03:25:33 AM UTC
   
 
Category:  Plotting Severity:  1 - Wish
Priority:  1 - Later Item Group:  Feature Request
Status:  Confirmed Assigned to:  None
Originator Name:  godfrey Open/Closed:  * Open
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 12 Jan 2024 10:08:16 PM UTC, comment #12: 

@nrjank: Yes, this feature request is still valid.  Octave is Matlab-compatible here, i.e., we also produce horizontal labels for the x-axis and y-axis.  Michael's request, and a feature above and beyond Matlab, would be to rotate these labels to be parallel to the axes.

Given that our Qt backend now supports rotation of text objects this should be possible.  But, someone has to be motivated enough to code it.  And as jwe indicated, he would like this to be configurable so that we don't get complaints from Matlab users that the plot is different.

Rik <rik5>
Group administrator
Mon 04 Dec 2023 06:14:13 PM UTC, comment #11: 

Is this old report still valid?

Testing with Octave 8.4.0 (and 9.0.1) and Matlab 2023b, I get the attached images when running one of Octave's demo scripts for mesh.  Other than matlab putting "" around it's lables, and maybe some position differences, both programs produce all horizontal/vertical labels.

Marking as need info in case I'm missing some other use case, but perhaps this old report can be closed.  As Rik mentioned in comment #10 the ability to rotate axis labels is being addressed by other reports.




Nicholas Jankowski <nrjank>
Group Member
Wed 05 Oct 2022 04:25:23 PM UTC, comment #10: 

Also see bug #62882 where I provided a patch for implementing xticklabelrotation().  It's not perfect, but should be doable now.

Rik <rik5>
Group administrator
Wed 05 Oct 2022 02:57:02 PM UTC, comment #9: 

FYI bug #33118 has been closed.
According to comment #7 this could be simple to implement.

Anonymous
Thu 08 Dec 2016 03:57:05 AM UTC, comment #8: 

bug #33118 still exists in Octave 4.2.0, but only for fltk and qt toolkits.

Nicholas Jankowski <nrjank>
Group Member
Fri 26 Dec 2014 03:27:23 PM UTC, comment #7: 

Adding a dependency on bug #33118 which is the ability to have arbitrary rotations in FLTK.  If that is fixed this would be fairly simple to implement.

Rik <rik5>
Group administrator
Tue 12 Mar 2013 10:26:58 PM UTC, comment #6: 

This will be hard for the FLTK backend which only supports text rotation in 90 degree increments.

The gnuplot backend supports arbitrary rotation, but unfortunately it seems to work only for text objects and not for xlabels or ylabels.

Rik <rik5>
Group administrator
Thu 03 Feb 2011 07:11:39 AM UTC, comment #5: 

Ok to mark it as request/wishlist.

Michael Godfrey <godfrey>
Group Member
Thu 03 Feb 2011 06:53:13 AM UTC, comment #4: 

I'm not opposed to allowing the behavior you want, but I think it should probably be configurable.  I also have no idea how to make the change.  OK to mark as a feature request/wishlist item?

John W. Eaton <jwe>
Group administrator
Thu 03 Feb 2011 06:49:02 AM UTC, comment #3: 

Sorry to say that this is also how Matlab does it.

While that does somewhat reduce the interest in
fixing it, I still think that most users would
prefer the x and y labels to be parallel to the
axes (as is the zlabel).  And, I do not think
that this should be decided by compatibility.

Michael Godfrey <godfrey>
Group Member
Thu 03 Feb 2011 06:11:19 AM UTC, comment #2: 

I see the same behvior with gnuplot.

John W. Eaton <jwe>
Group administrator
Thu 03 Feb 2011 03:26:16 AM UTC, comment #1: 

I should have mentioned: this is using
fltk.

Michael Godfrey <godfrey>
Group Member
Thu 03 Feb 2011 03:25:33 AM UTC, original submission:  

Using mesh() and possibly other 3D plots
the xlabel and ylabel text is horizontal,
not parallel to the respective axes.

Is this a known behavior?
The appropriate orientation is parallel to
each axis.

Michael Godfrey <godfrey>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #55400:  meshlabelsmatlabcompare.png added by nrjank (103KiB - image/png - comparison between mesh plots in matlab and octave)

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nrjank (Posted a comment)
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by godfrey (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 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-01-12 rik5 StatusNeed Info Confirmed
    2023-12-04 nrjank Attached File- Added meshlabelsmatlabcompare.png, #55400
        StatusConfirmed Need Info
    2014-12-26 rik5 Dependencies- Depends on bugs #33118
    2013-03-12 rik5 Summaryfeature request: Using mesh() x any labels wrongly oriented feature request: mesh() should have labels parallel to axes
    2012-02-27 rik5 StatusNone Confirmed
    2011-02-03 jwe Severity3 - Normal 1 - Wish
        Priority5 - Normal 1 - Later
        Item GroupIncorrect Result Feature Request
        SummaryUsing mesh() x any labels wrongly oriented feature request: Using mesh() x any labels wrongly oriented

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code