[rrd-developers] legend spacing problem - redux
Carter Bullard
carter at qosient.com
Wed May 16 06:23:40 CEST 2007
Hey Tobi,
Oh my conclusion comes from the previous fix, which still works
perfectly,
and simply assigns glue = 0; regardless of the flags. If the glue
were
constant on each line, I would get great legend label alignment. And
I don't have to know the width of the graph.
In my case, I'm being lazy, and I'm not calculating any widths, or
the pixel
size of my legend strings, or anything, I'm just throwing fixed
length legend
labels at rrd_graph() and its doing what it can. I don't know if
the line
breaks, but because I'm always using the same size for the label,
padding it with spaces, rrd_graph will provide the same spacing
for the legends, and so everything gets lined up. Works great, as long
as there is no glue added.
If I put a \l at the end of every legend label, I get one label per
line.
So I'm all for "--align-legend=noglue" , or "--align-legend=no" :o)
Carter
On May 15, 2007, at 7:04 PM, Tobias Oetiker wrote:
> Hi Carter,
>
> what makes you say the glue is not applied correctly? what
> happens is that the lines in the legend get justified when they are
> broken across. The last line does not get justified since it is not
> being broken across ...
>
> what people normally do, is to end their lines with \l and they get
> left-aligned.
>
> what you want is to not have lines justified, but left-aligned even
> when they are broken automatically ...
>
> I guess I had been using LaTeX too much when I designed this ...
>
> cheers
> tobi
>
> Yesterday Carter Bullard wrote:
>
>> Hey Tobi,
>> Hmmmmm, well I'm not sure, it doesn't seem a natural solution,
>> in that if I was a novice user, I would be perplexed by the need
>> to use the option. I think the behavior that I'm really looking
>> for is
>> no alignment at all. Maybe "--align-legend=packed"?
>>
>> The actual problem is that the "glue" is being applied incorrectly.
>> How about a global "--align-legend=noglue". Very esoteric, may
>> require a description of what glue is, but gets to the real issue.
>>
>> Yes, I don't like the 'J' either.
>>
>> Hope all is most excellent!!!!
>>
>> Carter
>>
>>
>> On May 15, 2007, at 3:10 PM, Tobias Oetiker wrote:
>>
>>> Hi Carter,
>>>
>>> I see the problem yes ... but I don;t like that implementation
>>> with \J ... shouldn't this be done with a global option called
>>>
>>> --align-legend=left
>>>
>>> cheers
>>> tobi
>>>
>>>
>>> Today Carter Bullard wrote:
>>>
>>>> and here are two graphs, using rrdtool.1.2.23 with and without the
>>>> old patches applied.
>>>>
>>>> http://qosient.com/argus/rrdtool.1.2.23.png
>>>> http://qosient.com/argus/rrdtool.1.2.23.mod.png
>>>>
>>>> If you would like to see simple examples with graph definitions,
>>>> etc....
>>>> I can provide, so please send mail.
>>>>
>>>> Best Regards,
>>>>
>>>> Carter
>>>>
>>>
>>> --
>>> Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
>>> http://it.oetiker.ch tobi at oetiker.ch ++41 62 213 9902
>>>
>>
>
> --
> Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
> http://it.oetiker.ch tobi at oetiker.ch ++41 62 213 9902
>
Carter Bullard
CEO/President
QoSient, LLC
150 E. 57th Street Suite 12D
New York, New York 10022
+1 212 588-9133 Phone
+1 212 588-9134 Fax
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-developers/attachments/20070516/16092a23/attachment.html
More information about the rrd-developers
mailing list