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" <[email protected]> To: "Simon Kleinknecht" <[email protected]>, [email protected] 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:[email protected]] On Behalf Of > Simon Kleinknecht > Sent: 09 February 2016 18:02 > To: [email protected] > 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 > > [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
