Pyx

Latest version: v0.16

Safety actively analyzes 682404 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 5

0.12

- 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

- 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

- 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

- 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

0.9

- most important changes (to be included in the release notes):
- mathtree removal (warning about integer division)
- barpos style does not build tuples for nestedbar axes automatically
- new deformers for path manipulation (for smoothing, shifting, ... paths)
- font modules:
- new framework for font handling
- own implementation of type1 font stripping (old pdftex code fragments removed)
- complete type1 font command representation and glyph path extraction from font programs
- t1code extension module (C version of de-/encoding routines used in Type 1 font files)
- AFM file parser
- graph modules:
- data module:
- mathtree removal: more flexibility due to true python expressions
- default style instantiation bug (reported by Gregory Novak)
- style module:
- automatic subaxis tuple creation removed in barpos (create tuples
in expressions now; subnames argument removed since it became pointless;
adujstaxis became independend from selectstyle for all styles now)
- remove multiple painting of frompath in histogram and barpos styles
- fix missing attribute select when using a bar style once only (reported by Alan Isaac)
- fix histograms for negative y-coordinates (reported by Dominic Ford, bug 1492548)
- fix histogram to stroke lines to the baseline for steps=0 when two subsequent values are equal
- add key method for histogram style (reported by Hagemann, bug 1371554)
- implement a changebar style
- graph, axis and style module:
- support for mutual linking of axes between graphs
- new domethods dependency handling
- separate axis range calculation from dolayout
- axis.parter module:
- linear and logarthmic partitioners always need lists now
(as it was documented all the time; renamed tickdist/labeldist
to tickdists/labeldists; renamed tickpos/labelpos to
tickpreexps/labelpreexps)
- axis module:
- patch to tickpos and vtickpos (reported by Wojciech Smigaj, cf. patch 1286112)
- anchoredpathaxis added (suggested by Wojciech Smigaj)
- properly handle range rating on inversed axis (reported by Dominic Ford, cf. bug 1461513)
- invalidate axis partitions with a single label only by the distance rater
- fallback (with warning) to linear partitioner on a small logarithmics scale
- painter module:
- patch to allow for tickattrs=None (reported by Wojciech Smigaj, cf. patch 1286116)
- color module:
- transparency support (PDF only)
- conversion between colorspaces
- nonlinear palettes added
- the former palette must now be initialized as linearpalette
- remove min and max arguments of palettes
- text module:
- improve escapestring to handle all ascii characters
- correct vshift when text size is modified by a text.size instance
- recover from exceptions (reported by Alan Isaac)
- handle missing italic angle information in tfm for pdf output (reported by Brett Calcott)
- allow for .def and .fd files in texmessage.loaddef (new name for
texmessage.loadfd, which was restricted to .fd files)
- path module:
- correct closepath (do not invalidate currentpoint but set it to the
beginning of the current subpath); structural rework of pathitems
- calculate real bboxes for Bezier curves
- fix intersection due to non-linear parametrization of bezier curves
- add rotate methods to path, normpath, normsubpath, and normsubpathitems
- add flushskippedline to normsubpath
- add arclentoparam to normsubpath and normsubpathitems
- path is no longer a canvasitem
- reduce number of parameters of outputPS/outputPDF methods (do not pass context and registry)
- normpath module:
- contains normpath, normsubpath and normpathparam which have originally
been in the path module
- return "invalid" for certain path operations when the curve "speed" is
below a certain threshold
- normpath is no longer a canvasitem
- reduce number of parameters of outputPS/outputPDF methods (do not pass context and registry)
- deformer module:
- rewritten smoothed to make use of the subnormpath facilities
- rewritten parallel for arbitrary paths
- deco module:
- add basic text decorator
- allow arrows at arbitrary positions along the path
- connector module:
- boxdists parameter need to be a list/tuple of two items now
- changed the orientation of the angle parameters
- trafo module:
- renamed _apply to apply_pt
- introduce _epsilon for checking the singularity of a trafo
- epsfile module:
- use rectclip instead of clip to remove the clipping path from the
PostScript stack, which otherwise might create strange effects for
certain PostScript files (reported by Gert Ingold)
- dvifile module:
- silently ignore TrueType fonts in font mapping files (reported by Gabriel Vasseur)
- type1font module:
- accept [ and ] as separators in encoding files (reported by Mojca Miklavec, cf. bug 1429524)
- canvas module:
- remove registerPS/registerPDF in favour of registering resourcing during the outputPS/outputPDF run
- move bbox handling to registry
- rename outputPS/outputPDF -> processPS/processPDF
- remove set method of canvas
- add a pipeGS method to directly pass the PyX output to ghostscript
- allow file instances as parameter of the writeXXXfile methods (feature request 1419658 by Jason Pratt)
- document modules:
- allow file instances as parameter of the writeXXXfile methods (feature request 1419658 by Jason Pratt)
- style module:
- make rellength the default for dash styles
- random notes:
- switched to subversion on 2006/03/09

0.8.1

- deco module:
- fix bug in postscript deco code for stroking only attributes
- path module:
- fix multicurveto._normalized
- fix path.paramtoarclen and path.paramtoarclen_pt
- remove unused method-local function
- fix linestyle rellength in PostScript
- correction to the rounding problems in circles (reported by Uwe Fabricius)
- epsfile module:
- fix a typo
- pattern module:
- issue a warning when not using a stroke color for patterns
- text module:
- postpone PDFfontdescriptor information, since it raises an error on certain
fonts even when PostScript output was requested (reported by Gert Ingold)
- remove spurious spaces when checking for empty texmessages
- kpathsea module:
- caching in fallback to lower system call bottleneck
- canvas module:
- add missing writePSfile wrapper
- add *args to writeEPSfile and writePDFfile wrappers
- writer modules:
- writebbox option to write bbox information (disabled by default)
even when a paper format is specified (PS and PDF writers only)
- use arclen in spring example
- add knot example
- use pdf graphic files for pdf version of the manual
- use PyX to create tipa fallbacks for FAQ
- correct description regarding the manual in the README file

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.