Martin | 16 May 2013 10:18
Picon

Bar plot: how to use two y-axes

I am relatively new to Veusz and am finding it very useful, so a big 
thank you to everybody concerned. I have a question if I may: Drawing a 
simple bar plot I cannot figure out how to draw two sets of bars that 
have different y-axes. Simplified example:

Group1
High = 2
Low = 1

Group2
High = 200
Low = 100

I want to plot four bars on a graph using a left hand y-axis for Group1 
and right hand y-axis for Group2. I understand how to use different 
y-axes but how can I space the bars so that they read, from left to 
right: 2, 1, 200, 100?

At the moment I have a bar plot with the two y-axes but the two sets of 
bars are overlapping each other.

Any hints would be much appreciated.

Yours, Martino
Mark Durre | 16 May 2013 09:12
Picon
Picon
Favicon

Veusz function requests - entering names and referencing data

Hi there,

GREAT program! I've just got a couple of small requests.

(1) It would be great if you could import multiple files at once, rather than one at a time. This would require checking that they were all of the same type (e.g. FITS files) and that the dataset names were set using the $FILENAME prefix or suffix.

(2) When you are changing the page or dataset names, the name is blanked out and you have to type the whole changed name in again. It would be useful if you could edit this "in place", so, say, single characters could be changed.

(3) On labels, it would be nice to be able to refer to the dataset name or filename. cf. IRAF plotting puts the filename on the plot automatically. This could be done through, say, "$DATASET"?

Mark Durré
Ph.D. Student
Centre for Astrophysics and Supercomputing
Swinburne University of Technology
PO Box 218, Hawthorn
Victoria 3122, Australia

_______________________________________________
Veusz-discuss mailing list
Veusz-discuss@...
https://mail.gna.org/listinfo/veusz-discuss
Paul Schwenn | 14 May 2013 15:05
Picon

Re: Unicode problem

Hi, and thanks for the great work on Veusz!

I made a Tools Plugin that creates xy plots and dataset names with utf-8 symbols. This works fine if I run from source with encoding set to UTF-8 in eclipse (Windows 7). However, it fails if I run the plugin from Veusz installed with veusz-1.17.1.win32-py2.7.exe.

UnicodeEncodeError: 'ascii' codec can't encode character u'\u0394' in position 4: ordinal not in range(128)

I would like to distribute the Tool Plugin and Veusz to others who don't have python installed. So I thought I could rebuild the installer using pyinstaller-2.0 (If that was used to generate the windows installer).

I found a few pyinstaller '.spec' files on github (https://github.com/jeremysanders/veusz) but they don't seem to work.

Can someone please build the installer for Veusz 1.17.1 with utf-8 encoding, or suggest how to get pyinstaller to work with the veusz source?

Is there another way to create the windows installer from source with encoding set to UTF-8?

Many thanks in advance,

Paul


On Tue, May 14, 2013 at 11:02 PM, Paul Schwenn <pauleschwenn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hi, and thanks for the great work on Veusz!

I made a Tools Plugin that creates xy plots and dataset names with utf-8 symbols. This works fine if I run from source with encoding set to UTF-8 in eclipse (Windows 7). However, it fails if I run the plugin from Veusz installed with veusz-1.17.1.win32-py2.7.exe.

UnicodeEncodeError: 'ascii' codec can't encode character u'\u0394' in position 4: ordinal not in range(128)

I would like to distribute the Tool Plugin and Veusz to others who don't have python installed. So I thought I could rebuild the installer using pyinstaller-2.0 (If that was used to generate the windows installer).

I found a few pyinstaller '.spec' files on github (https://github.com/jeremysanders/veusz) but they don't seem to work.

Can someone please build the installer for Veusz 1.17.1 with utf-8 encoding, or suggest how to get pyinstaller to work with the veusz source?

Is there another way to create the windows installer from source with encoding set to UTF-8?

Many thanks in advance,

Paul

_______________________________________________
Veusz-discuss mailing list
Veusz-discuss@...
https://mail.gna.org/listinfo/veusz-discuss
Jeremy Sanders | 11 Apr 2013 21:25
Gravatar

ANN: Veusz 1.17.1

I've made a Veusz 1.17.1 release, which is primarily to fix a couple of 
obvious bugs. Please find below the release notes.

Jeremy

Veusz 1.17.1
------------
http://home.gna.org/veusz/

Veusz is a scientific plotting package.  It is designed to produce
publication-ready Postscript/PDF/SVG output. Graphs are built-up by
combining plotting widgets. The user interface aims to be simple,
consistent and powerful.

Veusz provides GUI, Python module, command line, scripting, DBUS and
SAMP interfaces 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.17.1:
  * Allow coloured points for non-orthogonal plots (polar, ternary)
  * Remove unnecessary exception data

Bug fixes:
  * Fix Print dialog
  * Fix command-line "Print" command
  * Fix duplicate axes drawn in grid
  * Fix crash adding empty polar plot
  * Exit properly on Mac OS X with --export option
  * Fix highlighted button icons missing (Mac OS X binary)

Changes in 1.17:
  * Add new broken axis widget with gaps in the numerical sequence
  * Grid lines are plotted always under (or over) the data
  * Shift+Scroll wheel scrolls left/right (thanks to Dave Hughes)
  * Polar plots can have a "minimum" radius and log axes
  * Many more LaTeX symbols added
  * Add SAMP/VoTable support (thanks to Graham Bell)
  * New shifted-points xy line mode, which plots a stepped line with
    the points shifted to lie between the coordinates given
  * Points can be picked to console and/or clipboard
    (thanks to Valerio Mussi)
  * Allow reversed ternary plot

Bug fixes:
  * Fix unicode characters for \circ and \odot
  * Fix for data type of pickable points
  * Fix sort by group crash bug
  * Many crashes fixed
  * Fix width of key when using long titles/and or multiple columns
  * Fix bold and italic output in SVG output

Features of package:
  Plotting features:
   * 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
   * Ternary 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
  Input and output:
   * EPS/PDF/PNG/SVG/EMF export
   * Dataset creation/manipulation
   * Embed Veusz within other programs
   * Text, CSV, FITS, NPY/NPZ, QDP, binary and user-plugin importing
   * Data can be captured from external sources
  Extending:
   * Use as a Python module
   * 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
   * Scripting interface
   * Control with DBUS and SAMP
  Other features:
   * Data picker
   * Interactive tutorial
   * Multithreaded rendering

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

Optional:
  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
  dbus-python, for dbus interface
    http://dbus.freedesktop.org/doc/dbus-python/
  astropy (optional for VO table import)
    http://www.astropy.org/
  SAMPy (optional for SAMP support)
    http://pypi.python.org/pypi/sampy/

Veusz is Copyright (C) 2003-2013 Jeremy Sanders
<jeremy@...> and contributors. It is licenced
under the
GPL (version 2 or greater).

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:

   * Due to a bug in the Qt XML processing, some MathML elements
     containing purely white space (e.g. thin space) will give an error.

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.
Sherwood Botsford | 7 Apr 2013 15:59
Picon

Time coordinates?


I thought I sent this in once, but there has been zero discussion. Perhaps I sent it between signing up for the list and completeling my registration.

Anyway:

So far in playing with Veusz I have been unable to figure out how to create a time series axis:


X coordinate is { MMM-YYYY | mm-dd-yy | hh:mm | dow hh:mm ...
X coordinate is Standard Unix time stamp (optional removal of Daylight savings time)
X coordinate is days of week
X axis is modular time.  E.g. you have a bunch of data over multiple weeks, and want to see if there is a correlation with time of day, so you need the ability to strip out some of the coordinate.


Major ticks can be weeks, months, years, days
Minor ticks can be hours, 2,3,4,6, 12 hours (even divisors)

Similarly with shorter intervals




Respectfully,

Sherwood of Sherwood's Forests

Sherwood Botsford
Sherwood's Forests --  http://Sherwoods-Forests.com
780-848-2548
50042 Range Rd 31
Warburg, Alberta T0C 2T0

_______________________________________________
Veusz-discuss mailing list
Veusz-discuss@...
https://mail.gna.org/listinfo/veusz-discuss
Jeremy Sanders | 7 Apr 2013 14:47
Gravatar

Veusz 1.17.1 release candidate

Due to the bugs in 1.17, I've made a 1.17.1 release. This is a release 
candidate, so I'll just put this in the release directory if it is ok.

Please do try it out. Binaries and source are in
  http://download.gna.org/veusz/testing

I've also tried to reduce the size of the Mac OS X binary by removing 
things, so please tell me if anything is broken.

The release notes are attached.

Jeremy

Veusz 1.17.1
------------
http://home.gna.org/veusz/

Veusz is a scientific plotting package.  It is designed to produce
publication-ready Postscript/PDF/SVG output. Graphs are built-up by
combining plotting widgets. The user interface aims to be simple,
consistent and powerful.

Veusz provides GUI, Python module, command line, scripting, DBUS and
SAMP interfaces 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.17.1:
 * Allow coloured points for non-orthogonal plots (polar, ternary)
 * Remove unnecessary exception data

Bug fixes:
 * Fix Print dialog
 * Fix command-line "Print" command
 * Fix duplicate axes drawn in grid
 * Fix crash adding empty polar plot
 * Exit properly on Mac OS X with --export option
 * Fix highlighted button icons missing (Mac OS X binary)

Changes in 1.17:
 * Add new broken axis widget with gaps in the numerical sequence
 * Grid lines are plotted always under (or over) the data
 * Shift+Scroll wheel scrolls left/right (thanks to Dave Hughes)
 * Polar plots can have a "minimum" radius and log axes
 * Many more LaTeX symbols added
 * Add SAMP/VoTable support (thanks to Graham Bell)
 * New shifted-points xy line mode, which plots a stepped line with
   the points shifted to lie between the coordinates given
 * Points can be picked to console and/or clipboard
   (thanks to Valerio Mussi)
 * Allow reversed ternary plot

Bug fixes:
 * Fix unicode characters for \circ and \odot
 * Fix for data type of pickable points
 * Fix sort by group crash bug
 * Many crashes fixed
 * Fix width of key when using long titles/and or multiple columns
 * Fix bold and italic output in SVG output

Features of package:
 Plotting features:
  * 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
  * Ternary 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
 Input and output:
  * EPS/PDF/PNG/SVG/EMF export
  * Dataset creation/manipulation
  * Embed Veusz within other programs
  * Text, CSV, FITS, NPY/NPZ, QDP, binary and user-plugin importing
  * Data can be captured from external sources
 Extending:
  * Use as a Python module
  * 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
  * Scripting interface
  * Control with DBUS and SAMP
 Other features:
  * Data picker
  * Interactive tutorial
  * Multithreaded rendering

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

Optional:
 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
 dbus-python, for dbus interface
   http://dbus.freedesktop.org/doc/dbus-python/
 astropy (optional for VO table import)
   http://www.astropy.org/
 SAMPy (optional for SAMP support)
   http://pypi.python.org/pypi/sampy/

Veusz is Copyright (C) 2003-2013 Jeremy Sanders
<jeremy@...> and contributors. It is licenced
under the
GPL (version 2 or greater).

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:

  * Due to a bug in the Qt XML processing, some MathML elements
    containing purely white space (e.g. thin space) will give an error.

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.
_______________________________________________
Veusz-discuss mailing list
Veusz-discuss@...
https://mail.gna.org/listinfo/veusz-discuss
Steven hunyady | 5 Apr 2013 04:26
Picon

plotting live data using veusz.embed

Greetings, and thanks for a great tool.

I wish to plot live data. Veusz plots it well using the GUI capture dialog 
that gets the data from another program.

Now I'd like to use embedded Veusz in a python program that captures the live 
data itself. I added and modified the embedded example but my lack of 
knowledge about Veusz and python has me puzzled about how to manipulate the 
datasets. I'm currently using ImportString() to get one line of data at a 
time (and veusz plots this one point), but I don't know how to append to this 
data (instead of replacing it) when the next line is obtained. 

Any help would be greatly appreciated.
Christian Ambros | 29 Mar 2013 21:28
Favicon

again: change axis defaults on fits

Hi,

maybe it was the wrong time some weeks ago so I ask again.

when I import fits data and display it as image, the axis show azimuth and height. How can I change it to show pixels?

If I pick datapoints to get values I need them to be correlated to pixels in x and y not spheric coordinates.

cheers,
Christian

--
"A little learning never caused anyone's head to explode!"

"Ein wenig Lernen hat noch niemandens Kopf zum Explodieren gebracht!"
_______________________________________________
Veusz-discuss mailing list
Veusz-discuss@...
https://mail.gna.org/listinfo/veusz-discuss
Jeremy Sanders | 27 Mar 2013 19:21
Gravatar

Bug in 1.17

There's quite a serious bug in 1.17. The print dialog box does not work. 
I'll make a 1.17.1 fix. Does anything else need fixing?

Jeremy
Jeremy Sanders | 24 Mar 2013 13:51
Gravatar

ANN: Veusz 1.17

I'm pleased to announce Veusz 1.17. The release notes can be found below.

Jeremy

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

Copyright (C) 2003-2013 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.17:
  * Add new broken axis widget with gaps in the numerical sequence
  * Grid lines are plotted always under (or over) the data
  * Shift+Scroll wheel scrolls left/right (thanks to Dave Hughes)
  * Polar plots can have a "minimum" radius and log axes
  * Many more LaTeX symbols added
  * Add SAMP/VoTable support (thanks to Graham Bell)
  * New shifted-points xy line mode, which plots a stepped line with
    the points shifted to lie between the coordinates given
  * Points can be picked to console and/or clipboard
    (thanks to Valerio Mussi)
  * Allow reversed ternary plot

Bug fixes:
  * Fix unicode characters for \circ and \odot
  * Fix for data type of pickable points
  * Fix sort by group crash bug
  * Many crashes fixed
  * Fix width of key when using long titles/and or multiple columns
  * Fix bold and italic output in SVG output

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
  * Ternary 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, NPY/NPZ, QDP, binary 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
  * Interactive tutorial
  * Multithreaded rendering

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

Optional:
  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
  dbus-python, for dbus interface
    http://dbus.freedesktop.org/doc/dbus-python/
  astropy (optional for VO table import)
    http://www.astropy.org/
  SAMPy (optional for SAMP support)
    http://pypi.python.org/pypi/sampy/

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:

   * Due to a bug in the Qt XML processing, some MathML elements
     containing purely white space (e.g. thin space) will give an error.

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.
Sherwood Botsford | 22 Mar 2013 20:16
Picon

Feature Request: Time stamp data and Regex plugin?



2013-03-22 11:54:00 DNS G 1.05, DNS X 0.73
2013-03-22 11:55:00 DNS G 0.75, DNS X 0.77
2013-03-22 11:56:00 DNS G 1.54, DNS X 0.80
2013-03-22 11:57:00 DNS G 0.71, DNS X 0.69
2013-03-22 11:58:00 DNS G 0.67, DNS X 1.51
2013-03-22 11:59:00 DNS G 0.72, DNS X 0.73
2013-03-22 12:00:00 DNS G 0.75, DNS X 0.81
2013-03-22 12:01:00 DNS G 0.74, DNS X 0.78
2013-03-22 12:02:00 DNS G 0.82, DNS X 0.73
2013-03-22 12:03:00 DNS G 0.73, DNS X 1.54
2013-03-22 12:04:00 DNS G 0.68, DNS X 0.72
2013-03-22 12:05:00 DNS G 0.74, DNS X 0.76
2013-03-22 12:06:00 DNS G 0.74, DNS X 0.72
2013-03-22 12:07:00 DNS G 0.77, DNS X 0.87
2013-03-22 12:08:00 DNS G 0.79, DNS X 1.55
2013-03-22 12:09:00 DNS G 0.68, DNS X 0.70
2013-03-22 12:10:00 DNS G 0.71, DNS X 0.82
2013-03-22 12:11:00 DNS G 1.57, DNS X 0.78
2013-03-22 12:12:00 DNS G 0.82, DNS X 0.76
2013-03-22 12:13:00 DNS G 0.71, DNS X 1.49


Sample data.   I want to treat the first two fields as a time stamp.  DNS G and DNS X are fluff to keep the file readable for humans.  

So two requests:

1.  The ability to import and plot time series data.  Because a date can be 2013-03-22, 2013/22/03  03/22/2013, March 22, 2013, etc, etc, it would be useful to be able to define the date format to the importer.  (Think building blocks like the excel custom date format builder) 

2.  This brings up the second issue:  A regex parser would probably be needed in the date thingy anyway.  Allow it to be used more generally.  e.g.  a window where you can define (timedate, googledns, xplornetdns) ~= /(yyyy-mm-dd hh:mm:ss) (DNS G) (\d+) (DNS X) (\d+)/$1,$3,$5  (using mostly perl syntax, probably mangled in the details)



Respectfully,

Sherwood of Sherwood's Forests

Sherwood Botsford
Sherwood's Forests Tree Farm
http://Sherwoods-Forests.com
Farm: 780-848-2548
Cell: 780-863-7311
50042 Range Rd 31
Warburg, Alberta T0C 2T0



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

Gmane