James Bittner | 7 Mar 16:25 2011
Picon

Veusz with Numpy Time Data

I am currently trying to plot a few time series numpy arrays. One of the issues I have been running into recently 
is how to use a ISO formatted time array as a X Axis. 
My text is formatted as '2008-10-16T00:02:02' as per http://comments.gmane.org/gmane.comp.graphics.veusz.general/302

Yet when I go to use the array in a plot I run into the following error
>>> g.SetData('x', a['DateTime'])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "c:\python26\lib\site-packages\veusz-1.7-py2.6-win32.egg\veusz\embed.py",
 line 64, in runner
    return function( arg, *args, **args2 )
  File "c:\python26\lib\site-packages\veusz-1.7-py2.6-win32.egg\veusz\embed.py",
 line 303, in runCommand
    return self.sendCommand( (self.winno, cmd, args[1:], args2) )
  File "c:\python26\lib\site-packages\veusz-1.7-py2.6-win32.egg\veusz\embed.py",
 line 296, in sendCommand
    raise retobj
ValueError: invalid literal for float(): 2008-10-16T00:01:32
>>>


Regards, 
James
_______________________________________________
Veusz-discuss mailing list
Veusz-discuss@...
https://mail.gna.org/listinfo/veusz-discuss
Jeremy Sanders | 7 Mar 20:27 2011
Picon

Re: Veusz with Numpy Time Data

James Bittner wrote:

> I am currently trying to plot a few time series numpy arrays. One of the
> issues I have been running into recently
> is how to use a ISO formatted time array as a X Axis.
> My text is formatted as '2008-10-16T00:02:02' as per
> http://comments.gmane.org/gmane.comp.graphics.veusz.general/302

Thanks for the question. Are you using new numpy style date-time arrays? 
These aren't supported yet unfortunately.

The SetData command doesn't pass the data through the usual import filters, 
so Veusz doesn't try to interpret the string as a datetime.

What you can do instead is using the ImportString command to do the 
conversion, e.g.

ImportString('mydata(date)', mydata)

Where mydata is a string containing all your data
mydata='''2008-10-16T00:01:32
2010-01-01T00:00:00
...
'''

The (date) specifies the data format, but it should autodetect this.

I hope this helps!

Jeremy
Assela Pathirana | 14 Mar 11:19 2011

Re: Veusz with Numpy Time Data

Hi Jeremy,

I've started using veusz since a month and has become a big fan of the
program. The biggest strength of the program in my opinion is the 1:1
integration of scripting and GUI. There are many plotting programs
provide good scripting support (e.g. gnuplot, GMT), good GUI
support+scripting (qtiplot). But what I needed was a program which
enable me to `scaffold' a graph quickly with GUI and then use
scripting to do things efficiently (e.g. plot different data-sets
without revisiting the GUI). veusz does exactly that -- a very nice
piece of software!

One of the `drawbacks' of the program at the moment, at least for me:
suppose you do the above (GUI->modify a script) then you load the
script to veusz again to see the results of your manual editing. At
this stage, if you accidentally press `Save' button, the GUI
overwrites your code without skipping a beat. All your customizations
are lost -- unless you remembered to backup you custom script
beforehand. I tried renaming the script with extension .py (instead of
.vsz), but still the behavior is same.

I am not sure what is the best approach to remedy this situation.
Perhaps as a suggestion: would it be an idea to have GUI to save .vsz
files even when a script called *.py is loaded. Then the user could be
advised to do customizations after renaming the initial script file to
.py. This way the danger of losing your hours of work could be
avoided. -- Just a thought.

Thanks for giving us veusz!

Assela Pathirana,
Tel: +31(0)15 215 1854/Fax: +31(0)15 212 2921
Urban Water and Sanitation Department
UNESCO-IHE Institute for Water Education
Westvest 7, 2611 AX Delft, The Netherlands
Jeremy Sanders | 26 Mar 20:56 2011
Picon

ANN: Veusz 1.11 beta release

I'm pleased to announce the Veusz 1.11 beta release, with version number 
1.10.99. There are quite a few changes - see below for the provisional 
release notes.

Please tell me if there are any regressions against previous releases. 
I'm not planning to add anything new to this release, so improvements 
will probably have to wait.

Please do try the release out. I'd appreciate Mac users checking the 
release as I haven't had the chance to run it somewhere where Qt isn't 
installed.

Here is where you get download the release
http://download.gna.org/veusz/testing/

The Windows and Linux binaries have been changed quite a bit in the way 
they are produced so please do report any problems.

------------------

Veusz 1.11
----------
Velvet Ember Under Sky Zenith
-----------------------------
http://home.gna.org/veusz/

Copyright (C) 2003-2011 Jeremy Sanders <jeremy@...>
and contributors.

Licenced under the GPL (version 2 or greater).

Veusz is a Qt4 based scientific plotting package. It is written in
Python, using PyQt4 for display and user-interfaces, and numpy for
handling the numeric data. Veusz is designed to produce
publication-ready Postscript/PDF/SVG output. The user interface aims
to be simple, consistent and powerful.

Veusz provides a GUI, command line, embedding and scripting interface
(based on Python) to its plotting facilities. It also allows for
manipulation and editing of datasets. Data can be captured from
external sources such as internet sockets or other programs.

Changes in 1.11:
  * New data point picker for finding coordinates of points on plot
    (contributed by B.K. Stuhl)
  * New data navigator window for filtering, sorting and examining
    dataset statistics
  * ".." button next to dataset settings pops up data navigator for
    choosing datasets
  * Data fitting can now use PyMinuit, giving error estimates
    (B.K. Stuhl)
  * Console history now uses currently entered characters to select
    lines from history (B.K. Stuhl)
  * New self test script, comparing graph output with expected output
  * Put superscripts and subscripts above each other when
    formatting (B.K. Stuhl)
  * Key entries can have multiple lines (using \\) (B.K. Stuhl)
  * Option to treat blanks as data items in CSV files
  * Locale support added for number formatting
     - Can use current locale or US/English in documents
     - Can use US/English or current local in user interface

  * Linux binaries are now created on a more modern system
  * Windows binaries now use MSVC for compilation

Bug fixes:
  * CSV import with blank columns fixed
  * Embedding module now working when using binary
  * Remember current directory with unicode characters
  * Extension module now compiles under MSVC in Windows
  * Output is always appended to console (B.K. Stuhl)
  * \r characters sometimes break data import in Windows
  * If using --export option, add directory of script to import path

Minor bug fixes:
  * Zero sized dataset contour plot fix
  * Fix problem on context menu for axis match setting
  * Small values on log axis fix
  * Disable data edit dialog context menu when no datasets
  * Loading files with unicode filenames on command line
  * Do not allow non finite float settings

Features of package:
  * X-Y plots (with errorbars)
  * Line and function plots
  * Contour plots
  * Images (with colour mappings and colorbars)
  * Stepped plots (for histograms)
  * Bar graphs
  * Vector field plots
  * Box plots
  * Polar plots
  * Plotting dates
  * Fitting functions to data
  * Stacked plots and arrays of plots
  * Plot keys
  * Plot labels
  * Shapes and arrows on plots
  * LaTeX-like formatting for text
  * EPS/PDF/PNG/SVG/EMF export
  * Scripting interface
  * Dataset creation/manipulation
  * Embed Veusz within other programs
  * Text, CSV, FITS and user-plugin importing
  * Data can be captured from external sources
  * User defined functions, constants and can import external Python 
functions
  * Plugin interface to allow user to write or load code to
     - import data using new formats
     - make new datasets, optionally linked to existing datasets
     - arbitrarily manipulate the document
  * Data picker

Requirements for source install:
  Python (2.4 or greater required)
    http://www.python.org/
  Qt >= 4.3 (free edition)
    http://www.trolltech.com/products/qt/
  PyQt >= 4.3 (SIP is required to be installed first)
    http://www.riverbankcomputing.co.uk/pyqt/
    http://www.riverbankcomputing.co.uk/sip/
  numpy >= 1.0
    http://numpy.scipy.org/

Optional:
  Microsoft Core Fonts (recommended for nice output)
    http://corefonts.sourceforge.net/
  PyFITS >= 1.1 (optional for FITS import)
    http://www.stsci.edu/resources/software_hardware/pyfits
  pyemf >= 2.0.0 (optional for EMF export)
    http://pyemf.sourceforge.net/
  PyMinuit >= 1.1.2 (optional improved fitting)
    http://code.google.com/p/pyminuit/
  For EMF and better SVG export, PyQt >= 4.6 or better is
    required, to fix a bug in the C++ wrapping

For documentation on using Veusz, see the "Documents" directory. The
manual is in PDF, HTML and text format (generated from docbook). The
examples are also useful documentation. Please also see and contribute
to the Veusz wiki: http://barmag.net/veusz-wiki/

Issues with the current version:

  * Some recent versions of PyQt/SIP will causes crashes when exporting
    SVG files. Update to 4.7.4 (if released) or a recent snapshot to
    solve this problem.

If you enjoy using Veusz, we would love to hear from you. Please join
the mailing lists at

https://gna.org/mail/?group=veusz

to discuss new features or if you'd like to contribute code. The
latest code can always be found in the Git repository
at https://github.com/jeremysanders/veusz.git.
Daniele Paganelli | 29 Mar 14:25 2011

Re: ANN: Veusz 1.11 beta release

>   * New data navigator window for filtering, sorting and examining
>     dataset statistics
>   * ".." button next to dataset settings pops up data navigator for
>     choosing datasets

Thank you very much!!!
I'll try this as soon as possible ;)

--

-- 
Daniele Paganelli
 Researcher
 Expert System Solutions S.r.l.
 Via Virgilio 58/L - 41100 Modena (ITALY)
 Tel: +39 0598860020 - Fax: +39 0598860024
 Email: d.paganelli@...
 Web: www.expertsystemsolutions.it
johnd | 30 Mar 01:02 2011
Picon
Picon

Confusion as to how the user feedback/forum structure is supposed to work

Dear Jeremy and others:

I am confused -- bewildered -- tearing out my hair -- regarding the hidden structure of the web sites that relate to Veusz.

I apologize for being a klutz. I love using Veusz, and I'm very grateful for what you have freely provided.

Some weeks ago when first trying to penetrate these mysteries I was struck by the fact that these web pages send the user into an infinite loop. I've ended up with two usernames and two passwords (one is "GNA site wide" and one for Veusz mailing list, but these linked pages leave me floundering as to what if any login is expected, and if so which).

Picture someone wanting to submit a question so that others might respond -- before doing so, one would like to know it isn't a question that has already been posed. Upon clicking on "Mailing lists" at http://home.gna.org/veusz/  one reads "To see the collection of prior posting to the list, visit the veusz-discuss archives." This link takes one to a page that (several visits suggest) is not obviously helpful -- not searchable, not self-explanatory. One may indeed download archives. But to what end?

By what sequence of events does a user's question end up at the page headed "Veusz - A Scientific Plotting Package - Bugs: Browse Items"? On first sight this page appears to have the forum structure (a dialog of user questions and responses, arranged chronologically). But the most recent entries here are 04Mar2011, 04Nov2010, 27Jun2010 suggesting not much activity. Reading between the lines it seems this is NOT where this sort of helpful info is intended to go (besides, there surely are many questions that do not concern "bugs"). But supposing (conversely) it were -- I don't see where on this page one is invited to pose one's own question.

So, when in need of help, does one simply send an email to the list?

The intent here is to suggest there is a lack of clarity in the way Veusz-user participation is structured on/via these web sites. A few helpful sentences on each of these pages might stave off grief. Again, thanks for the wonderful program. John Wilson
-- Department of Earth & Atmospheric Sci. University of Alberta, Edmonton 780 492 0353
_______________________________________________
Veusz-discuss mailing list
Veusz-discuss@...
https://mail.gna.org/listinfo/veusz-discuss
Jeremy Sanders | 30 Mar 22:04 2011
Picon

Re: Confusion as to how the user feedback/forum structure is supposed to work

johnd wrote:

> Some weeks ago when first trying to penetrate these mysteries I was
> struck by the fact that these web pages send the user into an infinite
> loop. I've ended up with two usernames and two passwords (one is "GNA
> site wide" and one for Veusz mailing list, but these linked pages leave
> me floundering as to what if any login is expected, and if so which).

Thanks - it's obviously rather confusing. I can't modify the structure of 
the gna.org pages themselves - that comes from gna.org's system, but I could 
add a how to get help page linked from the main webpage.

I can enable and disable certain sections of the website, so I could disable 
either the "Bugs" or "Support" section, or both if we move to the github 
issue tracker (see below).

Unfortunately there are two passwords: the gna.org password to enter bugs or 
support items and the gna.org mailman password for subscribing to mailing 
lists. I can't do much about that unless I move the project elsewhere.

I would suggest using the mailing list rather than the bug tracker / support 
tracker as it is probably only seen by me on the tracker and is more 
searchable. There is a searchable interface using gmane which could be 
linked to:
http://dir.gmane.org/gmane.comp.graphics.veusz.general

Alternatively, there is also a issue tracker on github, where we do the 
source control for development. This is far easier to use than gna.org, but 
I've not found previous entries in google:
https://github.com/jeremysanders/veusz/issues

Jeremy

Gmane