[Top][All Lists]

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

Re: 90-deg rotated tick mark labels

From: Ben Abbott
Subject: Re: 90-deg rotated tick mark labels
Date: Sun, 11 Sep 2011 21:43:59 -0400

On Sep 11, 2011, at 3:26 PM, indium wrote:

> On Thu, Sep 08, 2011 at 12:18:56PM -0400, John W. Eaton wrote:
>> On  8-Sep-2011, Jordi Gutiérrez Hermoso wrote:
>> | and it will rotate the ticks. I think for us your suggestion makes
>> | more sense. Matlab doesn't have such a property at all either, right?
>> I don't see one in the documentation.
>> jwe
> I don't know if you are already aware of the attached script
> 'xticklabel_rotate.m', so I thought I would mention it. 
> From a quick try, I cannot get it working. Inside the script 'xtick' is
> written like 'xTick', so I can imagine case-sensitivity is a problem...

There are a few problems with using this script with Octave.

(1) The script sets the units property to "pixel" instead of "pixels". 
Apparently Matlab will match that correctly for a radio-property?

(2) The script also assumes that the ticklabels are stored as character arrays. 
Since Matlab permits this property to be be character, numeric, or cells, this 
is a bug for the script.

(3) The script relies upon extent and position info for the axes labels. 
Unfortunately, the gnuplot backend does not provide this info.

(4) The script requires that the text can be rotated. The FLTK backend only 
supports text rotation in increments of 90 degrees.

Perhaps a bug report should be filed for (1).

As part of the motivation for the OpenGL backend was to eliminate problems such 
as (3), I don't expect anything to be done about that.

The non-general rotation of the text objects will eventually be resolved by 
adding the functionality to FLTK or by use of another OpenGL backend (Qt?).


reply via email to

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