Hi Tim,
only using month is difficult. You could use datetime objects (e.g.
2016-01-01, 2016-02-01, ...); however I don't know any way to display
the month label on the axis. I can offer a workaround which you've
already discovered. You could count up months (1, 2, ...) and provide an
additional data set containing the respective labels (Jan, Feb, ...)
which can then be displayed along the axis using an "empty" bar graph.
Attached please find a quick-and-dirty example. I'm curious if there is
a nicer way to do this.
Regards
Simon
On 2016-02-09 05:28 PM, Tim Gaines wrote:
> I'm new to the list today, and though I hope to plot some research results
> later, my first goal is to plot some personal blood pressure measures as a
> function of month (a text variable). I haven't been able to make it happen.
> If I turn the month labels into a number sequence (1 to 12) it works, but I
> want to extend the plot over several years and don't want to keep counting up
> the months. Have I missed something?
>
> Thanks,
> Tim
>
> _______________________________________________
> Veusz-discuss mailing list
> [email protected]
> https://mail.gna.org/listinfo/veusz-discuss
>
# Veusz saved document (version 1.23.2)
# Saved at 2016-02-09T16:55:36.314000
AddImportPath(u'F:\\')
ImportString(u'equal_ID(numeric)','''
1.000000e+00
2.000000e+00
3.000000e+00
4.000000e+00
5.000000e+00
6.000000e+00
7.000000e+00
8.000000e+00
9.000000e+00
''')
SetDataText(u'equal_VarModelName', [
u'January',
u'February',
u'March',
u'April',
u'May',
u'June',
u'July',
u'August',
u'September',
])
ImportString(u'equal_coarse_ParetoSensitivity(numeric)','''
2.630000e+01
1.930000e+01
1.660000e+01
1.260000e+01
1.440000e+01
3.760000e+00
3.370000e+00
2.450000e+00
1.340000e+00
''')
Set('StyleSheet/Font/font', u'Arial')
Set('StyleSheet/Font/size', u'10pt')
Set('StyleSheet/axis/Label/size', u'10pt')
Set('StyleSheet/axis/TickLabels/size', u'9pt')
Set('StyleSheet/axis/TickLabels/format', u'%g')
Set('StyleSheet/axis/MajorTicks/length', u'4pt')
Set('StyleSheet/axis/MinorTicks/length', u'2pt')
Set('StyleSheet/graph/leftMargin', u'1.2cm')
Set('StyleSheet/graph/bottomMargin', u'1cm')
Set('StyleSheet/grid/leftMargin', u'0cm')
Set('StyleSheet/grid/rightMargin', u'0cm')
Set('StyleSheet/grid/topMargin', u'.5cm')
Set('StyleSheet/grid/bottomMargin', u'.75cm')
Set('StyleSheet/imagefile/width', [0.5])
Set('StyleSheet/imagefile/height', [1.0])
Set('StyleSheet/key/Text/size', u'9pt')
Set('StyleSheet/key/keyLength', u'0.5cm')
Set('StyleSheet/key/marginSize', 0.5)
Set('StyleSheet/page/width', u'15cm')
Set('StyleSheet/page/height', u'10cm')
Set('StyleSheet/xy/markerSize', u'2pt')
Set('StyleSheet/xy/errorStyle', u'none')
Add('page', name='page1', autoadd=False)
To('page1')
Set('width', u'14cm')
Add('graph', name='graph1', autoadd=False)
To('graph1')
Set('bottomMargin', u'2.5cm')
Add('axis', name='x', autoadd=False)
To('x')
Set('label', u'')
Set('mode', u'labels')
Set('Label/offset', u'0pt')
Set('TickLabels/rotate', u'90')
Set('TickLabels/format', u'Auto')
Set('TickLabels/offset', u'3pt')
To('..')
Add('axis', name='y', autoadd=False)
To('y')
Set('direction', 'vertical')
To('..')
Add('xy', name='xy1', autoadd=False)
To('xy1')
Set('xData', u'equal_ID')
Set('yData', u'equal_coarse_ParetoSensitivity')
Set('labels', u'')
Set('scalePoints', [])
Set('Color/points', [])
To('..')
Add('bar', name='bar1', autoadd=False)
To('bar1')
Set('lengths', (u'',))
Set('posn', u'equal_ID')
Set('labels', u'equal_VarModelName')
To('..')
To('..')
To('..')
_______________________________________________
Veusz-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/veusz-discuss