[reportlab-users] y axis lines and frames

Timothy Smith timothy at open-networks.net
Fri Aug 26 05:22:48 EDT 2005


Robin Becker wrote:

> Timothy Smith wrote:
>
>> Robin Becker wrote:
>>
>>> Timothy Smith wrote:
>>>
>>>> 2 questions.
>>>> 1. when i use frames, if border=0 is set on the frame, and if the 
>>>> element of the frame are larger then it, then nothing appears on 
>>>> the canvas.
>>>
>>>
>>>
>>>
>>> not sure what this means; can you post an example?
>>>
> ....... I need the ReportStyle definition to check this out. Can you 
> email it me?

yes of course, my mistake

ReportStyle = TableStyle([('GRID', (0,0),(-1,-1), 0.25, colors.black),
                                    ('ALIGN',(0,0), (-1,-1), 'CENTRE'),
                                    ('LEFTPADDING',(0,0),(-1,-1),4),
                                    ('RIGHTPADDING',(0,0),(-1,-1),4),
                                    ('FONT',(0,0),(-1,-1),'Times-Roman',8)])

>
>>> visibleGrid=1 may be what you want
>>
>>
>>
>> visibleGrid is kind of right, but i need it to show on the y axis, 
>> for a horizontal line chart it shows from the x axis.
>>
>> Chart.categoryAxis.visibleGrid = 1  << need to set that but for the y 
>> axis only
>>
>
> the value axis also has a visibleGrid so do valueAxis.visibleGrid = 1




More information about the reportlab-users mailing list