[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: about contibuting to octave
From: |
Shai Ayal |
Subject: |
Re: about contibuting to octave |
Date: |
Fri, 13 Mar 2009 13:21:33 +0200 |
On Fri, Mar 13, 2009 at 12:27 PM, xianghang liu <address@hidden> wrote:
>
>
> On Thu, Mar 12, 2009 at 6:13 PM, Michael Goffioul
> <address@hidden> wrote:
>>
>> On Thu, Mar 12, 2009 at 9:47 AM, xianghang liu <address@hidden>
>> wrote:
>> > I guess some futher transformations, such as translation, rotation and
>> > scale
>> > transformation might be needed. Because we need to transform it to the
>> > coordinate system of the figure. I used the following script in matlab:
>> >>plot(0:pi/20:2*pi,sin(0:pi/20:2*pi))
>> >>h = text(pi,0,'
>> >> {\itAe}^{-\alpha\itt}sin\beta{\itt}\alpha<<\beta','FontSize',18)
>> >>ext = get(h,'extent');
>> >>hold on,rectangle('Position',ext)
>> >
>> > I would like to do some experiments of coordinate transformation and try
>> > to
>> > solve this problem.
>>
>> There exist already some code to convert from different "units".
>> See for instance the convert_position function in graphics.cc used
>> to convert position rectangles between various possible "units".
>>
>> Some extension is needed to be able to handle single point instead
>> of rectangle and also to support data "units". However, the axes object
>> provides an easy access to the current transformation matrix, so it
>> shouldn't be that hsard.
>>
>> My point is that you shouldn't care about transformation at the moment,
>> but focus on code that can produce an extent in pixel coordinate.
>> Transforming it to the correct "units" will be handled somewhere else.
>>
>> Michael.
>
> Since I am not familiar with freetype, I have no ideas about how it deals
> with subscripts and superscripts. Please give me some suggestions if you
> know that.
> Thanks.
Freetype does not know how to deal with sup/sub. That is the TeX parser's job
Shai
- Re: units conversion (was: about contibuting to octave), (continued)
- Re: units conversion (was: about contibuting to octave), John Swensen, 2009/03/13
- Re: units conversion (was: about contibuting to octave), Shai Ayal, 2009/03/13
- Re: units conversion (was: about contibuting to octave), John W. Eaton, 2009/03/13
- Re: units conversion (was: about contibuting to octave), xianghang liu, 2009/03/26
- Re: units conversion (was: about contibuting to octave), John W. Eaton, 2009/03/26
- Re: units conversion (was: about contibuting to octave), xianghang liu, 2009/03/26
- Re: units conversion (was: about contibuting to octave), Shai Ayal, 2009/03/27
- Re: units conversion (was: about contibuting to octave), xianghang liu, 2009/03/28
- Re: units conversion (was: about contibuting to octave), Shai Ayal, 2009/03/28
- Re: about contibuting to octave, xianghang liu, 2009/03/13
- Re: about contibuting to octave,
Shai Ayal <=
- Re: about contibuting to octave, Michael Goffioul, 2009/03/14
- Re: about contibuting to octave, xianghang liu, 2009/03/23