Hello,
When I export an 2d image plot from Veusz to a PDF, the colors of some
of the blocks get shifted, or perhaps rounded to a nearest value.
The does not happen for exports to any other format, or when the
colormap is one of the grayscale ones. It also does not happen for
other plot types or for colorbars, making it possible the bug is in
Veusz rather than in the PDF library.
I've seen this bug on 1.14.99 as well as 1.13.
Below is a short Veusz script that produces essentially identical graphs
using a scatter plot (top) and an image plot (bottom). When exported to
PDF the two plots look different, with the image plot looking "boxier".
Alan
# Veusz saved document (version 1.14.99)
# Saved at 2012-03-16T13:14:01.910000
SetDataExpression(u'x0', u't', parametric=(0.5, 9.5, 10), linked=True)
SetDataExpression(u'x1',
u'concatenate((x0,x0,x0,x0,x0,x0,x0,x0,x0,x0),axis=1)', linked=True)
SetDataExpression(u'y1', u'sort(x1)', linked=True)
SetDataExpression(u'z1', u'x1 + y1', linked=True)
SetData2DXYFunc(u'z2d', (0.5, 9.5, 1.0), (0.5, 9.5, 1.0), u'x+y',
linked=True)
Set('height', u'6in')
Set('StyleSheet/Line/width', u'1.0pt')
Set('StyleSheet/Line/color', u'#000000')
Set('StyleSheet/Font/font', u'Arial')
Set('StyleSheet/Font/size', u'10pt')
Set('StyleSheet/axis/autoRange', 'exact')
Set('StyleSheet/axis/autoExtendZero', False)
Set('StyleSheet/axis/autoMirror', False)
Set('StyleSheet/axis/Line/width', u'1.0pt')
Set('StyleSheet/colorbar/autoRange', 'exact')
Set('StyleSheet/colorbar/autoExtendZero', False)
Set('StyleSheet/document/width', u'3.4in')
Set('StyleSheet/document/height', u'2.5in')
Set('StyleSheet/graph/leftMargin', u'0.5in')
Set('StyleSheet/graph/rightMargin', u'0.1in')
Set('StyleSheet/graph/topMargin', u'0.1in')
Set('StyleSheet/graph/bottomMargin', u'0.4in')
Set('StyleSheet/grid/leftMargin', u'0')
Set('StyleSheet/grid/rightMargin', u'0')
Set('StyleSheet/grid/topMargin', u'0')
Set('StyleSheet/grid/bottomMargin', u'0')
Set('StyleSheet/key/Border/hide', True)
Set('StyleSheet/key/vertPosn', u'top')
Set('StyleSheet/xy/marker', u'none')
Set('StyleSheet/xy/errorStyle', u'none')
Add('page', name='page1', autoadd=False)
To('page1')
Add('grid', name='grid1', autoadd=False)
To('grid1')
Set('columns', 1)
Add('graph', name='graph1', autoadd=False)
To('graph1')
Add('axis', name='x', autoadd=False)
To('x')
Set('min', 0.0)
Set('max', 10.0)
Set('GridLines/hide', True)
To('..')
Add('axis', name='y', autoadd=False)
To('y')
Set('min', 0.0)
Set('max', 10.0)
Set('direction', 'vertical')
Set('GridLines/hide', True)
To('..')
Add('xy', name='xy1', autoadd=False)
To('xy1')
Set('xData', u'x1')
Set('yData', u'y1')
Set('marker', u'square')
Set('markerSize', u'10.8pt')
Set('scalePoints', [])
Set('Color/points', u'z1')
Set('Color/min', 1.0)
Set('Color/max', 19.0)
Set('PlotLine/hide', True)
Set('MarkerLine/color', u'white')
Set('MarkerLine/hide', True)
Set('MarkerFill/colorMap', u'complement')
To('..')
To('..')
Add('graph', name='graph2', autoadd=False)
To('graph2')
Add('axis', name='x', autoadd=False)
To('x')
Set('GridLines/hide', True)
To('..')
Add('axis', name='y', autoadd=False)
To('y')
Set('direction', 'vertical')
Set('GridLines/hide', True)
To('..')
Add('image', name='image1', autoadd=False)
To('image1')
Set('data', u'z2d')
Set('colorMap', u'complement')
To('..')
To('..')
To('..')
To('..')
_______________________________________________
Veusz-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/veusz-discuss