[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #34906] Compatibility difference with ticklabe
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #34906] Compatibility difference with ticklabels, linestyleorder |
Date: |
Mon, 24 Jun 2013 22:18:45 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0 |
Follow-up Comment #9, bug #34906 (project octave):
The behavior of xticklabels is getting much better, but there is still a
problem with alignment of the labels.
Sample code:
plot (1:4);
set (gca, 'xticklabel', '1|1.500|2|2.500|3|3.500|4')
If you look at the plot you will notice that the labels for 1,2,3,4 are offset
to the left from their tickmark. The problem is that we are splitting and
converting the string to a character matrix where the fill character is a
space. Thus, the label '1' is really '1 ' to match the width of '1.500'.
When you pass a cell array of values this isn't a problem.
It seems like a possible solution would be to change to a null-delimited
character array such that the first label was '1\0\0\0\0'. Then in the font
renderer code we could put in something to look only for a C string so that
this would become '1' rather than a 5 character sequence. Just an idea.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34906>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #34906] Compatibility difference with ticklabels, linestyleorder, anonymous, 2013/06/06
- [Octave-bug-tracker] [bug #34906] Compatibility difference with ticklabels, linestyleorder, Stefan Mahr, 2013/06/11
- [Octave-bug-tracker] [bug #34906] Compatibility difference with ticklabels, linestyleorder, Ben Abbott, 2013/06/11
- [Octave-bug-tracker] [bug #34906] Compatibility difference with ticklabels, linestyleorder, Ben Abbott, 2013/06/11
- [Octave-bug-tracker] [bug #34906] Compatibility difference with ticklabels, linestyleorder, Stefan Mahr, 2013/06/11
- [Octave-bug-tracker] [bug #34906] Compatibility difference with ticklabels, linestyleorder, Rik, 2013/06/24
- [Octave-bug-tracker] [bug #34906] Compatibility difference with ticklabels, linestyleorder,
Rik <=
- [Octave-bug-tracker] [bug #34906] Compatibility difference with ticklabels, linestyleorder, Rik, 2013/06/24
- [Octave-bug-tracker] [bug #34906] Compatibility difference with ticklabels, linestyleorder, Stefan Mahr, 2013/06/25
- [Octave-bug-tracker] [bug #34906] Compatibility difference with ticklabels, linestyleorder, Rik, 2013/06/25
- [Octave-bug-tracker] [bug #34906] Compatibility difference with ticklabels, linestyleorder, Stefan Mahr, 2013/06/25
- [Octave-bug-tracker] [bug #34906] Compatibility difference with ticklabels, linestyleorder, Rik, 2013/06/26
- [Octave-bug-tracker] [bug #34906] Compatibility difference with ticklabels, linestyleorder, Rik, 2013/06/26