Re: [Veusz-discuss] line plot with text variable as x?

2016-02-10 Par sujet Tim Gaines
Thanks Sergey and Simon.  I am liking the Veusz software more every day.  Its 
versatility is impressive.

I actually decided that my original plan to extend the x-axis "month" variable 
out over years would soon become unwieldy, so I opted for listing the 12 months 
only once and then plotting "years" as different lines (with different colors). 
 That would more efficiently reveal patterns across months and changes over 
years.  That change permitted a fairly simple workaround before even trying the 
"VDX" format (that I WILL try later).  I simply made "month" a numerical 
variable (1-12) to get a nice line graph.  Then I opted to hide the tick labels 
on that axis and replace them with the month names using the "text label" tool; 
not too tedious with only 12 to type and position.  It looks great.

Tim   

- Original Message -
From: "Sergey Gromov" <sergey.gro...@mpic.de>
To: "Simon Kleinknecht" <simon.kleinkne...@iws.uni-stuttgart.de>, 
veusz-discuss@gna.org
Sent: Tuesday, February 9, 2016 12:52:00 PM
Subject: Re: [Veusz-discuss] line plot with text variable as x?

Hi Tim,

Take a look at format specifiers ("%V...", in axis labels properties) used in 
Veusz.. they are slightly different from those used in C printf functions, but 
quite flexible. 

Quote (from http://home.gna.org/veusz/docs/manual.html#idp52342176 ):

Veusz allows dates and times to be formatted using "%VDX" where "X" is one of 
the formatting characters for strftime (see 
http://opengroup.org/onlinepubs/007908799/xsh/strftime.html for details). These 
include "a" for an abbreviated weekday name, "A" for full weekday name, "b" for 
abbreviated month name, "B" for full month name, "c" date and time 
representaiton, "d" day of month 01..31, "H" hour as 00..23, "I" hour as 
01..12, "j" as day of year 001..366, "m" as month 01..12, "M" minute as 00..59, 
"p" AM/PM, "S" second 00..61, "U" week number of year 00..53 (Sunday as first 
day of week), "w" weekday as decimal number 0..6, "W" week number of year 
(Monday as first day of week), "x" date representation, "X" time 
representation, "y" year without century 00..99 and "Y" year. "%VDVS" is a 
special Veusz addon format which shows seconds and fractions of seconds (e.g. 
12.2).

So, you can try using ( following 
http://opengroup.org/onlinepubs/007908799/xsh/strftime.html ):
"%VDb" - is replaced by the locale's abbreviated month name.
"%VDm" - is replaced by the month as a decimal number [01,12]

Hope this helps,
Sergey


> -Original Message-
> From: Veusz-discuss [mailto:veusz-discuss-boun...@gna.org] On Behalf Of
> Simon Kleinknecht
> Sent: 09 February 2016 18:02
> To: veusz-discuss@gna.org
> Subject: Re: [Veusz-discuss] line plot with text variable as x?
> 
> 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
> > Veusz-discuss@gna.org
> > https://mail.gna.org/listinfo/veusz-discuss
> >

___
Veusz-discuss mailing list
Veusz-discuss@gna.org
https://mail.gna.org/listinfo/veusz-discuss

___
Veusz-discuss mailing list
Veusz-discuss@gna.org
https://mail.gna.org/listinfo/veusz-discuss


Re: [Veusz-discuss] line plot with text variable as x?

2016-02-10 Par sujet Jeremy Sanders

Hi Tim

On 02/09/2016 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?



Another way to do this is to use a text dataset as labels. You can 
create a new text dataset containing Jan Feb Mar, etc... In your point 
plotter choose this dataset in the labels setting. Then change the 
horizontal axis mode to be labels. You can hide the text labels by each 
point under the plotter labels formatting tab.


Hope this helps

Jeremy


___
Veusz-discuss mailing list
Veusz-discuss@gna.org
https://mail.gna.org/listinfo/veusz-discuss


Re: [Veusz-discuss] line plot with text variable as x?

2016-02-09 Par sujet Simon Kleinknecht
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
> Veusz-discuss@gna.org
> 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.00e+00
2.00e+00
3.00e+00
4.00e+00
5.00e+00
6.00e+00
7.00e+00
8.00e+00
9.00e+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.63e+01
1.93e+01
1.66e+01
1.26e+01
1.44e+01
3.76e+00
3.37e+00
2.45e+00
1.34e+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
Veusz-discuss@gna.org
https://mail.gna.org/listinfo/veusz-discuss


Re: [Veusz-discuss] line plot with text variable as x?

2016-02-09 Par sujet Gromov, Sergey
Hi Tim,

Take a look at format specifiers ("%V...", in axis labels properties) used in 
Veusz.. they are slightly different from those used in C printf functions, but 
quite flexible. 

Quote (from http://home.gna.org/veusz/docs/manual.html#idp52342176 ):

Veusz allows dates and times to be formatted using "%VDX" where "X" is one of 
the formatting characters for strftime (see 
http://opengroup.org/onlinepubs/007908799/xsh/strftime.html for details). These 
include "a" for an abbreviated weekday name, "A" for full weekday name, "b" for 
abbreviated month name, "B" for full month name, "c" date and time 
representaiton, "d" day of month 01..31, "H" hour as 00..23, "I" hour as 
01..12, "j" as day of year 001..366, "m" as month 01..12, "M" minute as 00..59, 
"p" AM/PM, "S" second 00..61, "U" week number of year 00..53 (Sunday as first 
day of week), "w" weekday as decimal number 0..6, "W" week number of year 
(Monday as first day of week), "x" date representation, "X" time 
representation, "y" year without century 00..99 and "Y" year. "%VDVS" is a 
special Veusz addon format which shows seconds and fractions of seconds (e.g. 
12.2).

So, you can try using ( following 
http://opengroup.org/onlinepubs/007908799/xsh/strftime.html ):
"%VDb" - is replaced by the locale's abbreviated month name.
"%VDm" - is replaced by the month as a decimal number [01,12]

Hope this helps,
Sergey


> -Original Message-
> From: Veusz-discuss [mailto:veusz-discuss-boun...@gna.org] On Behalf Of
> Simon Kleinknecht
> Sent: 09 February 2016 18:02
> To: veusz-discuss@gna.org
> Subject: Re: [Veusz-discuss] line plot with text variable as x?
> 
> 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
> > Veusz-discuss@gna.org
> > https://mail.gna.org/listinfo/veusz-discuss
> >

___
Veusz-discuss mailing list
Veusz-discuss@gna.org
https://mail.gna.org/listinfo/veusz-discuss