octave-maintainers
[Top][All Lists]
Advanced

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

Re: Google Summer of Code - LaTeX processing


From: Ben Abbott
Subject: Re: Google Summer of Code - LaTeX processing
Date: Fri, 07 Jun 2013 20:29:48 +0800

On Jun 7, 2013, at 7:10 PM, Michael Goffioul wrote:

> On Fri, Jun 7, 2013 at 4:48 AM, Andrej Lojdl <address@hidden> wrote:
> 
>> 2013/6/7 Abbott, Ben <address@hidden>
>> 
>>> On Jun 6, 2013, at 11:13 PM, Patrick Noffke wrote:
>>> 
>>>> On Wed, Jun 5, 2013 at 2:57 PM, Andrej Lojdl <address@hidden> wrote:
>>>>> Today I had more time, so I started reading the code and thinking how to
>>>>> control multiline high as Michael proposed. There are some things bugging
>>>>> me... I understand that height is expressed in font size and that 64 is 
>>>>> some
>>>>> scaling factor between font size and size of character on screen. And that
>>>>> we save line high in font size (it is expressed in font size). But I don't
>>>>> understand how to add this scaling factor? Can someone give me a hint or
>>>>> example? When make plot and add title typing title (" text \n text \n text
>>>>> \n"), it makes two lines and then, just pack all new lines to second. If I
>>>>> get it, this is what needs to be repaired. Is function called once for 
>>>>> every
>>>>> line or  for whole string?
>>>> 
>>>> I was just playing around, and I think the problem is more than with
>>>> multi-line text.
>>>> 
>>>> figure;plot(x,y);title(sprintf('Line 1\nLine 2\nLine 3'), 'FontSize', 24)
>>>> - The lines are drawn somewhat on top of one another.
>>>> 
>>>> figure;plot(x,y);title(sprintf('Line 1\nLine 2\nLine 3'), 'FontSize', 10)
>>> 
>>> Pardon the intrusion, I've been trying to follow along.
>>> 
>>> I'm not sure what you mean by "somewhat on top of one another".  I tried ...
>>> 
>>> title ("Line 1\nLine 2\nLine 3", "FontSize", 20)
>>> 
>>> and
>>> 
>>> title ({"Line 1", "Line 2", "Line 3"}, "FontSize", 20)
>>> 
>>> Both give the result attached, which looks correct to me.
>>> 
>>> Ben
>> 
>> When I use "fltk" (OpenGL) as a graphic toolkit i get overlap for size 20 
>> and no overlap for size 36. And same results using "gnuplot".
>> 
>> 2013/6/7 Catalin Codreanu <address@hidden>
>> On windows with graphics_toolkit => gnuplot I get this king of image :
>> I guess that's what Patrick means by "somewhat on top of one another". 
>> I cheated a little bit, my command line was : title({'line 1', 'line2', 
>> 'line 3'}, 'FontSize', 36) ... so that the effect is clear.
>> 
>> Cat
> 
> Andrej, Catalin, please try to bottom-post your answers. I know that gmail 
> interface doesn't make it easy (I'm also using it), but it's possible. In the 
> reply window, click the small icon with 3 dots to expand the quoted part, 
> then add your response at the bottom.
> 
> For the actual issue, I'm wondering whether it could be due to invalid 
> metrics in the font. Could you check whether it's also font dependent?
> 
> Michael.

Also, Octave has no way to determine the text extents when using gnuplot.  
Also, when the axes activepositionproperty is "outerposition", we have no way 
of determining the extents of the axes plot box.  Hence, I don't think we 
should bother trying to implement LaTeX for the gnuplot toolkit.

Ben





reply via email to

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