Bernd Maier <maier.be...@...> writes:
>
> Hi,
>
> Veusz is a great software, I am currently using it (latest version 1.9).
>
> Two things are however missing (either that or I'm not able to do it
> properly):
>
> 1) One cannot set the distance between the key text and the key itself
> manually.
>
> 2) One cannot freely choose the size (width) of the error bar ends. It
> is possible to achieve this with scaling the marker sizes, but that's
> not an optimal solution.
>
> Both things would be great to have. Is it possible or may it be
> implemented soon?
>
> Thanks, and best wishes,
> Bernd
>
Hi,
I have now hacked this in the code by myself, if anyone is interested:
1) in key.py:
- I added a new property:
"s.add(setting.Distance('keyGap', '0.2cm', descr = 'Gap between key
and keytext', usertext= 'key-text gap', formatting=True))"
- then the total box size changes:
"# total size of box
gap = s.get('keyGap').convert(painter) #added this line
symbolwidth = s.get('keyLength').convert(painter)
totalwidth = ( (maxwidth + gap + symbolwidth)*numcols +
height*(numcols-1) ) #changed height to gap here"
- writing the key text must be changed as well:
"# write key text
if showtext:
painter.setPen(textpen)
utils.Renderer(painter, font,
xpos + gap + symbolwidth, ypos,
plotter.getKeyText(num),
-1, 1).render() # changed height to gap"
- now you can change the gap between key and keytext by a property box
in the GUI.
2) Here, I only changed the width of the errorbar-ends the way I like it:
2/3 of the symbol width. A control box here would be nice too.
I would appriciate, if this would be considered by Jeremy Sanders for the next
version of Veusz. Many thanks!!
Best wishes,
Bernd
_______________________________________________
Veusz-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/veusz-discuss