[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Sat Mar 5 00:04:32 CET 2005


I think it should. The y-tick labels are backed away from the y-axis by some 
arbitrary amount, which just happens to YTickLabel->lineSpacing(p) / 4. 
As a result the position of the y-axis (i.e. xleft_bdr_px) depends on this 
value. If you muck about with font sizes using your code you'll see the
fonts can overlap. I can't get them to do this with my code.

You can argue about whether using YTickLabel->lineSpacing(p) / 4 is the best 
option, but given that it is used the code should remain as was.

Andrew

On Friday 04 March 2005 14:51, Barth Netterfield wrote:
> CVS commit by netterfield:
>
> The position of the X axis should have nothing to do with the height of
> the Y Tick labels.
>
> We need to add 1.5 x YLabel height for 1.5 line spacing, which I think
> looks nice.
>
>
>   M +1 -2      kst2dplot.cpp   1.366
>
>
> --- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.365:1.366
> @@ -1819,6 +1819,5 @@ void Kst2DPlot::setBorders(double& xleft
>
>    xleft_bdr_px  = tpy.maxWidth;
> -  xleft_bdr_px += YLabel->lineSpacing(p);
> -  xleft_bdr_px += YTickLabel->lineSpacing(p) / 4;
> +  xleft_bdr_px += 3*YLabel->lineSpacing(p)/2;
>
>    // calculate the right border
>
>
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst


More information about the Kst mailing list