Oh I see.

So I had a look at the examples and I think you could try using the
compute extremes option (again, see attached example).  This is
relatively neat. Please note that you need to change the colour at three
places when you do this (because it essentially fills from the avaerage
to the top, from the average to the bottom, after which the line itself
is still visible so I had to make that one by the same colour).

Best,

Yan

Op 07/06/16 om 22:31 schreef Michael Clerx:
> Thanks Yan!
>
> It's a good idea, but it doesn't work if the function changes sign.
>
>
> On 06/07/2016 05:29 PM, Yan Grange wrote:
>> I am not really sure if I understand the difference between "the area
>> between a graph an the x-axis" and "the area below the graph" so I will
>> answer it the way I understand it.
>>
>> The way I would do this is to create a function that has value 0, and
>> fill under that curve with white (see attached vsz file). The only thing
>> you have to make sure is the order of the curves (i.e that the white is
>> on top of the colour). Is that what you try to achieve?
>>
>> Cheers,
>>
>> Yan
>>
>> Op 07/06/16 om 17:15 schreef Michael Clerx:
>>> Dear all,
>>>
>>> Does anyone know if the "Fill" functionality can be used to fill the
>>> area between a graph and the x-axis, not just below or above it?
>>>
>>> best,
>>>  Michael
>>>
>>>
>>> _______________________________________________
>>> Veusz-discuss mailing list
>>> [email protected]
>>> https://mail.gna.org/listinfo/veusz-discuss
>>
>>
>> _______________________________________________
>> Veusz-discuss mailing list
>> [email protected]
>> https://mail.gna.org/listinfo/veusz-discuss
>
>
>
>
> _______________________________________________
> Veusz-discuss mailing list
> [email protected]
> https://mail.gna.org/listinfo/veusz-discuss

# Veusz saved document (version 1.24)
# Saved at 2016-06-08T09:35:35.694528

AddImportPath(u'/Users/grange/tmp')
DatasetPlugin('Extremes', {'ds_min': u'', 'ds_max': '', 'ds_errorbar': 
u'test_err', 'errorbars': False, 'ds_in': (u'zeos', u'test_y')})
SetDataExpression(u'test_x', u't', parametric=(-10.0, 10.0, 1000), linked=True)
SetDataExpression(u'test_y', u'sin(t)', parametric=(-10.0, 10.0, 1000), 
linked=True)
SetDataExpression(u'zeos', u'0*t', parametric=(-10.0, 10.0, 1000), linked=True)
Add('page', name='page1', autoadd=False)
To('page1')
Add('graph', name='graph1', autoadd=False)
To('graph1')
Add('axis', name='x', autoadd=False)
To('x')
Set('min', -3.141592653589793)
Set('max', 3.1415926535898)
Set('lowerPosition', 0.0)
Set('upperPosition', 1.0)
To('..')
Add('axis', name='y', autoadd=False)
To('y')
Set('min', -2.437)
Set('max', 2.67)
Set('direction', 'vertical')
Set('lowerPosition', 0.0)
To('..')
Add('function', name='function1', autoadd=False)
To('function1')
Set('function', u'sin(x)')
Set('steps', 50)
Set('hide', True)
Set('FillBelow/hide', True)
To('..')
Add('function', name='function2', autoadd=False)
To('function2')
Set('function', u'0')
Set('hide', False)
Set('xAxis', u'x')
Set('Line/hide', False)
Set('FillBelow/color', u'black')
Set('FillBelow/hide', True)
Set('FillAbove/hide', True)
To('..')
Add('xy', name='xy1', autoadd=False)
To('xy1')
Set('markerSize', u'0pt')
Set('errorthin', 1)
Set('xData', u'test_x')
Set('yData', u'test_err')
Set('hide', False)
Set('labels', u'test_y')
Set('errorStyle', u'fillvert')
Set('PlotLine/color', u'blue')
Set('PlotLine/width', u'1pt')
Set('PlotLine/hide', False)
Set('MarkerLine/hide', True)
Set('MarkerFill/style', u'cross')
Set('MarkerFill/hide', True)
Set('MarkerFill/colorMapInvert', False)
Set('ErrorBarLine/color', u'magenta')
Set('ErrorBarLine/width', u'4pt')
Set('ErrorBarLine/style', u'dotted')
Set('ErrorBarLine/hide', True)
Set('ErrorBarLine/hideHorz', True)
Set('ErrorBarLine/hideVert', False)
Set('FillBelow/fillto', u'top')
Set('FillBelow/color', u'blue')
Set('FillBelow/style', u'solid')
Set('FillBelow/hide', True)
Set('FillBelow/transparency', 2)
Set('FillBelow/hideerror', False)
Set('FillAbove/color', u'blue')
Set('FillAbove/hide', True)
Set('Label/hide', True)
To('..')
To('..')
To('..')

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Veusz-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/veusz-discuss

Répondre à