./textproc/py-X, Package for the creation of PostScript, PDF, and SVG files

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.15, Package name: py37-X-0.15, Maintainer: pkgsrc-users

PyX is a Python package for the creation of PostScript, PDF, and SVG files.
It combines an abstraction of the PostScript drawing model with a TeX/LaTeX
interface. Complex tasks like 2d and 3d plots in publication-ready quality
are built out of these primitives.

Features
* PostScript, PDF, and SVG output for device independent, freely scalable
figures
* seamless TeX/LaTeX integration
* full access to PostScript features like paths, linestyles, fill patterns,
transformations, clipping, bitmap inclusion, etc.
* advanced geometric operations on paths like intersections, transformations,
splitting, smoothing, etc.
* sophisticated graph generation: modular design, pluggable axes, axes
partitioning based on rational number arithmetics, flexible graph styles,
etc.


Required to run:
[print/kpathsea] [print/dvipsk] [print/tex-tex] [print/tex-latex-bin] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: d9ceb19fbfe64fe488fff74d1e486d33483cde56
RMD160: 61ec70ac7fb7b7b8a6fdac5cdb5c9328775c7018
Filesize: 2499.844 KB

Version history: (Expand)


CVS history: (Expand)


   2020-03-01 03:56:41 by David H. Gutteridge | Files touched by this commit (4) | Package updated
Log message:
py-X: update to 0.15

(Spurred by the fact net/scapy expects the SVG support introduced back
in 2015.)

0.15 (2019/07/14):
  - text module:
    - introduce UnicodeEngine
    - MultiEngineText to express combined text data for TeX based engines and
      the new UnicodeEngine
    - Text and StackedText classes for simple typesetting operations on
      UnicodeEngine text
    - rename TexRunner and LatexRunner to TexEngine and LatexEngine
    - rename cls argument of text.set to engine (with fallback and
      deprecation warning in place)
    - improve error handling when input cannot be encoded by texenc
    - add support for virtual fonts in virtual fonts
    - font maps: treat font files without extension as Type 1 (to
      prevent warnings occuring especially with Minion or Libertine fonts)
    - fix UnicodeDecodeError for invalid character responses by TeX/LaTeX
      (reported by Gert Ingold)
  - new examples:
    - non-ASCII TeX encoding
  - t1font:
    - use integers in auto-guessed font descriptors to prevent an issue in pdftex
      (reported by Michael Hartmann)
    - fix typo: ItalicAngles -> ItalicAngle (thanks to Ross Moore)
  - graph.axis.texter:
    - unify exponential and mixed texter to default texter
    - use MultiEngineText in all texters (decimal, default, factional)
  - pdfwriter, pswriter, svgwriter:
    - removed underscore in  PS and PDF and SVG writer options strip_fonts,
      text_as_path, mesh_as_bitmap, mesh_as_bitmap_resolution
      (new: stripfonts, textaspath, meshasbitmap and meshasbitmapresolution)
      to prevent ambiquity with write_ prefixes.
    - Fix color output in SVG (reported by Michael Hartmann)
  - deformer:
    - Fix parallel deformer for empty normsubpaths (thanks to Michael J Gruber)
  - graph.style:
    - Use RGBA instead of ARGB in the bitmap fallback of graph.style.density
      Fix saving SVG as supported modes are limited (thanks to Michael J Gruber)
  - pattern:
    - inject default linewidth (reported by Michael J Gruber)
  - version control:
    - switched to git on 2018/07/16 with main repository on GitHub

0.14.1 (2015/11/02):
  - distribution:
    - upload to PyPI (including old releases)
    - remove old releases from sourceforge
  - text module:
    - fix load_def message parser (reported by Mico Filós)
  - normpath:
    - fix intersect with empty normsubpaths (bug #62, thanks to Florent Hivert)

0.14 (2015/04/30):
  - new svgwriter module:
    - complete SVG output
    - SVG font output disabled by default due to missing support by
      most browsers, fallback by rendering fonts as paths
  - new svgfile module:
    - SVG reader
    - unparsed mode: embedd svg in other svg
    - parsed mode: supports reading paths (including styles,
      tranformations, etc.) into a PyX canvas
  - bitmap module:
    - using bytes in image type conversions and channel extraction
  - color module:
    - fix grey class
    - fix rgb css binary issue and short code index error
  - epsfile module:
    - fix parsing of bounding box
  - text module:
    - no end of pages test when no dvi is created at all
    - add chroot config option needed to use a chrooted TeX installation
  - graph module:
    - add xy12axesat feature to graphxyz
  - canvas module:
    - fix clipping and transformation applied together
    - provide _repr_svg_ in canvas for use by IPython
    - new constructor argument ipython_bboxenlarge
  - deco module:
    - remove shortcut for ornaments only to not skip global styles
   2020-01-19 00:36:14 by Roland Illig | Files touched by this commit (3046)
Log message:
all: migrate several HOMEPAGEs to https

pkglint --only "https instead of http" -r -F

With manual adjustments afterwards since pkglint 19.4.4 fixed a few
indentations in unrelated lines.

This mainly affects projects hosted at SourceForce, as well as
freedesktop.org, CTAN and GNU.
   2019-11-04 22:43:49 by Roland Illig | Files touched by this commit (155)
Log message:
textproc: align variable assignments

pkglint -Wall -F --only aligned --only indent -r

No manual corrections.
   2015-11-04 03:00:17 by Alistair G. Crooks | Files touched by this commit (797)
Log message:
Add SHA512 digests for distfiles for textproc category

Problems found locating distfiles:
	Package cabocha: missing distfile cabocha-0.68.tar.bz2
	Package convertlit: missing distfile clit18src.zip
	Package php-enchant: missing distfile php-enchant/enchant-1.1.0.tgz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
   2015-04-14 01:12:44 by Blue Rats | Files touched by this commit (94)
Log message:
Removing python26. EOL'd quite some ago and discussed a couple times on
tech-pkg@ and pkgsrc-users@.
   2014-01-20 13:37:04 by Thomas Klausner | Files touched by this commit (4) | Package updated
Log message:
Update to 0.13:

0.13 (2013/12/20):
  - Requires at least Python 3.2
  - The gallery has been moved to https://sourceforge.net/p/pyx/gallery/, which
    is a wiki. Contributions are welcome.
  - filelocator module:
    - cygwin LaTeX with windows python patch (thanks to Sybren A. Stüvel)
  - graph styles:
    - fix numerical instability of line clippings
    - remove errorbar range checks, as they fail on a reverse axis, which is
      correct (reported by Néstor Espinoza)
  - path module:
    - fix internal name clash when generating a normpath from an empty path
      (reported by Brendon Higgins)
  - normpath module:
    - several stability and precision improvements and bugfixes
    - cusp removal at normpath construction (and getting rid of invalid
      results for curvature, rotation, tangent, and trafo methods)
    - remove curveradius methods as they are invalid for straigt paths
  - deco module:
    - apply text trafos to each character in curvedtext (reported by Hans L)
    - properly apply all textattrs in curvedtext (for example colors or scalings)
  - canvas module:
    - layer method takes layer names above or below (instead of an instance),
      also reorders layer accordingly when layer is already existing
    - remove the before and after arguments of insert
    - handle trafo and clip separately in constructor and write methods
    - allow for one clipping instance only
    - optimize graphics state stack usage
  - dvi/dvifile module:
    - change special handling for transformations and colors to use subcanvases
    - apply transformations to markers
  - trafos and styles are no longer canvasitems
  - style module:
    - fillrules are now fillstyles and handled within the PS/PDF context
  - text module:
    - new texenc setting
    - major code reorganization and documentation revision (now using autodoc)
  - font/afmfile module:
    - parse more AFM files, also some with common inconsistencies (thanks to
      Markus Schwienbacher for reporting these issues)
  - color module:
    - functiongradient has been split into functiongradient_rgb, etc. and
      the function parameters are now passed directly
    - lineargradient has been removed for factory functions lineargradient_rgb, etc.
      that provide linear gradients between colors of a particular color model
  - bitmap module:
    - fix jpegimage for progressive jpeg files (thanks to Michael Schindler)
  - pyxrc:
    - use APPDATA environment variable to locate the pyxrc on windows
    - tex, latex, kpsewhich, and locate executables are now customizable in the pyxrc
  - on the package level:
    - add pyxinfo to enable output of some useful information
  - manual:
    - PyX theme and various sphinx tweaks

0.12.1 (2012/10/26):
  - graph styles:
    - fix drawing and clipping of gradient style

0.12 (2012/10/17):
  - canvas module:
    - insert method now returns canvas wrapping item if attrs are given
    - insert method allows specification of position where item is inserted
      by before and after arguments
    - new layer method allows creation of separated drawing layers for
      grouping of drawing operations
    - writeXXXfile methods now use "page_" and "write_" \ 
prefixes for passing
      the keyword arguments to the page constructor and write method
    - pipeGS now returns a file handle instead of writing to a file or to stdout
    - the new method writeGSfile restores the previous pipeGS functionality
    - support rendering as png for use in IPython notebooks (as suggested by
      Nikolas Tezak)
  - document module:
    - writeXXXfile methods now support writing to stdout when filename is set
      to "-"
  - type 1 font modules:
    - allow font slanting for T1builtinfont instances
    - improve stripped font compatibility
    - remove UniqueID lookup from embedded fonts in PostScript output (fixes
      missing glyph issue with dvips and certain fonts)
    - allow Type1 font usage without TeX and without AFM font metric
    - add support for pfm font matrices
  - epsfile module:
    - fix race condition while generating bitmap for PDF inclusion
    - fix file opening for bbox reading when using filelocator (reported by
      Michael J Gruber)
  - filelocator module:
    - fix text mode line ending issue for MS Windows
  - text module:
    - fix subprocess call on MS Windows (closefds not functional not also
      not required at all)
    - fix pyxgraphics functionality because at least some versions of graphics
      and friends seem to expect the file extension .def for the driver files
      (thanks to Michael J Gruber)
  - deco module:
    - decorator to put text along a path; based on a patch by Michael J Gruber
  - dvifile module:
    - fix for MS Windows: open virtual font files in binary mode
  - graph modules:
    - graphs:
      - uses new canvas layers to stack graph components (fixing bug #1518414,
        reported by Dominic Ford)
      - add a flipped option to graphxy to exchange x and y coordinates
      - add a 1d graph "graphx" (use case: convert a value to a color)
      - add hiddenaxes layer to the 3d graph
      - add linkedaxes for the xy-plane in 3d like in 2d (works now properly due
        to the hiddenaxes feature)
    - graph styles:
      - add density style
      - add gradient style to convert a value to a color using a 1d graph
      - add a usenames dictionary to the pos style (like rangepos had it already)
    - graph data:
      - add a join data provide which adds concatenates several data sources
    - axis module:
      - divisor was not properly taken into account in tick handling (axis
        range extension and range rating)
  - added the metapost module:
    - create smooth paths from a series of points
  - bitmap module:
    - new fundamental constructor based on arbitrary affine transformations
    - add ASCIIHexDecode end marker
  - color module:
    - add rgbgradient and cmykgradient to force color space
  - mesh module:
    - add ASCIIHexDecode end marker
  - sourceforge.net:
    - upgrade PyX project page to the Allura platform

0.11.1 (2011/05/20):
  - canvas:
    - fix pipeGS (adding support for writing using pycompat.popen)
  - deco module:
    - arrow decorator: proper sign of constriction length for positioning
      reversed arrows
  - dvi/texfont:
    - fix exception type
    - increase designsize deviation to 4 (needs some further investigation)
  - contrib files:
    - fixes due to the dvi and font restructuring
  - setup.py:
    - fix build process for extension modules
    - fix download url to allow for easy_install (hopefully)
  - manual:
    - converted to sphinx

0.11 (2011/05/15):
  - font and dvi modules:
    - major reorganization
    - TeX mapping files are a property of the writer now
      By that the pdfwriter now uses pdftex.map instead of psfonts.map
      (It's also possible to pass a fontmap to a texrunners text method to use
      different mappings within a single output file)
    - support for font matrices (afm) for Type1 fonts
      (using fonts without a metrics is still supported, but properly issues
      a warning now)
    - interface for basic TeX-less text output
    - new PS and PDF writer options: strip_fonts, text_as_path, mesh_as_bitmap,
      mesh_as_bitmap_resolution
    - fix for commented out UniqueID
    - fix rounding of font sizes
    - fix scaling of VF position increments
  - new filelocator module
  - graph modules:
    - bar style on graphxyz (single datasets only)
    - graphxyz:
      - fix position of z4 axis
      - set correct errorname for z axis (thanks to Axel Freyn)
      - fix wrong y value usage instead of z value in pos methods
    - fix unused color range settings in surface style (thanks to Michael J Gruber)
    - fallbackrange for axes with vanishing range
    - dokeyitem method (to be called with a plotitem) to alter the key order
    - doplot() was renamed to doplotitem(), dodata() was renamed to doplot()
      to have similar naming conventions like for the graph key
    - axis module: do not divide by None for data.min and/or data.max being None \ 
(see patch #2833369)
    - axis painter:
      - properly rotate axis titles when ticks are not othorgonal
        to the axis (reported by Christian Delfosse)
      - correct namedirection in bar axis painter (reported by rhunger, bug #2028032)
    - graph.style.arrow: decorator is an parameter of the constructor now
      (thanks to Axel Freyn)
    - remove ticks with unset ticklevel and labellevel to prevent rating failures
      (thanks to Brendon Higgins)
  - canvas and document modules:
    - auto-guess output filename from the script filename
    - add ciecolor flag and input type to the pipeGS method of canvas
  - pyxrc:
    - new config options for psfontmaps and pdffontmaps
    - new config option for formatting of Python warnings
    - new config section for new filelocator module
  - text module:
    - fix two bugs in the read pipe of the texrunner (thanks to
      Laurence Tratt and Eric Faurot)
    - fix "<" token handling in mapping file parser (thanks to \ 
Matthew West)
    - fix start message parse error in MiKTeX (thanks to Wojciech Jaskowski)
    - fix rigid aux file checking (thanks to Clayton E. Myers)
    - use subprocess module if available
    - proper error messages when TeX is stopped due to unrecoverable error
  - style module:
    - implement style.fillrule
  - deco module:
    - added an explicit hatch pattern as an alternative for real postscript patterns
    - arrow decorator: take into account constriction length when arrow pos < 1
  - bitmap module:
    - add support for transparent bitmaps (in postscript stencil masking only)
  - path and normpath modules:
    - remove incorrect zero length line in PDF output for each first moveto
      path element (thanks to Michael J Gruber)
    - raise correct normpath exception (thanks to Axel Freyn)
  - epsfile module:
    - an ugly way to import EPS in PDF using a bitmap (requires PIL)

0.10 (2007/10/03):
  - graph modules:
    - graph module:
      - graphxyz for 3d graphs with parallel and central projection
      - doplot method (to be called with a plotitem) to alter the plotitem order etc.
    - graph styles:
      - new surface style for 3d graphs (colored surfaces are functional
        (and useful!) for 2d graphs as well)
      - new grid style for 3d graphs
      - new impulses style
      - optional textdx/textdy columns to the text style added
      - arrowpos parameter to the arrow style added
      - bugfix: fromvalue axis range adjustment in histogram style
      - bugfix: axis range adjustment in range style
    - axis module:
      - painter: don't insert axis title twice (thanks to Tim Gray for reporting \ 
this problem)
      - parter: extend the logarithmic parter to calculate automatic partitions \ 
for huge ranges
        (TODO: documentation of the new autoexponent parameter) (suggested by \ 
Dominic Ford)
      - fix: range rating was not taken into account due in the 0.9 release
    - data module:
      - list class was renamed to points; deprecation warning added
        for instance creation, but inheritance from list failes
      - new values class
  - new mesh module:
    - internal helper module for efficient handling of triangular colored meshs
  - color module:
    - renamed: palette->gradient, functionpalette->functiongradient, \ 
linearpalette->lineargradient
    - new class palette representing a discrete ordered list of colors
    - support transparency for filling/stroking in pdf separately
    - transparency support for postscript as available by means of a proprietary
      ghostscript extension (for ps2pdf)
    - renamed method: tostring8bit -> to8bitstring (bug #2932888)
  - attr module:
    - add multichangeattr to perform a select on different changeable attributes
      depending on the selects total number
  - font modules:
    - t1font:
      - add missing glyph traversal in t1seacs updatepath
  - normpath module:
    - support zero-length normsubpaths
  - canvas module:
    - don't change order of attrs passed to canvas constructor in place
  - added __truediv__ methods according to PEP 238
   2012-10-25 08:57:09 by Aleksej Saushev | Files touched by this commit (587)
Log message:
Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
   2012-10-04 02:22:01 by Aleksey Cheusov | Files touched by this commit (34)
Log message:
Bump revision for packages with changed CONFLICTS (PYTHON_SELF_CONFLICT)