fix insertion of a zero length path
[PyX.git] / CHANGES
blob4458839262b88a28ad74924289467e201693b134
1 PyX
3 TODO:
4   - style module:
5     - default patterns
6     - make dash length available
7   - text module:
8     - SlantFont & Co support
9     - keep an eye on PEP 324 (popen 5): it could make the texrunner much easier
10     - messageparser for replaced fontsizes: Warning
11     - messageparser for size differences at the end: Warning not Exception
12     - messageparser for overfull/underfull vbox/hbox: Warning not Exception
13     - newline removal when not disturbing texmessages only
14   - graph.graph module
15     - common bboxes for different graphs
16     - 3d graphs, circular graphs
17   - graph.style and graph.data modules
18     - exceptions in drawsymbol & friends...
19     - caution: another reorganization round is in progress
20       (its goal is to make graph styles combinable which will also
21       split up the style code in smaller parts -- those will then be
22       easier to substitute by inheritance)
23     - fix bug occuring when plotted is completely out of range
24   - graph.data module:
25     - use csv module (new in 2.3)
26     - Check for "inf" and "nan" in datafiles.
27       (When plotted, the graph does not complain, but the postscript will be broken)
28   - graph.style module:
29     - add styles using curves instead of lines
30     - add "steps" style for histogram-like plots
31   - canvas module:
32     - finish multi page PostScript output
33     - contructor should only take a texrunner keyword argument
34     - set method???
35     - PDF support
36     - SVG support
37   - style and color module:
38     - support modification of existing styles via __call__
39   - bbox module:
40     - height -> getheight, ...
41   - mathtree:
42     - might be moved into the graph
43     - perform calc by means of Python itself (see eval code in graph.data, but
44       we should use compiled code instead of eval)
45   - deco module:
46     - think hard about different paths in decoratedpath class
47     - adjust parameters of cycloid and smoothed
48       AW: I suggest to use cycloid with default curvesperloop=5.
49   - dvifile module:
50     - support single-character mode
51   - path module:
52     - arclentoparam should raise an exception when the arclen is out of range
53     - there are two epsilons related to normpath, one in the normpath and
54       one in the subnormpath; while the later seems a clear feature, the first
55       might be a misdesign; a solution is still pending ...
56   - color module:
57     - what should we do for palette when only one entry
58   - connector module:
59     - is the early conversion with unit.topt unit-modification-save?
61   Documentation:
62     - path module:
63       - describe + vs <<
64       - more details in path constructor: allowed pathels, first pathel...
65     - deco module:
66       - cycloid decorator
67       - smoothed decorator
68     - graphics section:
69       Attributes (clearing merging ) and changeable attributes should be 
70       explained at a central place.
71     - section titles: "Axes" -> "Axes - module axis" or similar
72     - box module:
73       - linealign and circlealign
74     - unit module
76   FAQ:
77     - describe creation and modification (inplace and ``modify by new'') of
78       graph data
80 0.7 (xxxx/xx/xx):
81   - path module:
82     - names of local and member variables now follow the naming convention of
83       having a _pt suffix when containing lengths in points
84   - bbox module:
85     - names of local and member variables now follow the naming convention of
86       having a _pt suffix when containing lengths in points
87     - enlarge was misspelled as enlarged
88     - renamed _bbox -> bbox_pt
89     - new bbox method center, which returns the coordinates of the center
90       of the bbox
91     - enlarge and enlarged do no longer interprete unqualified lengths as
92       being of type visual
93   - unit module:
94     - unit.cm, unit.t_cm, etc. are no longer sub classes but instances
95       of length
96     - never convert implicitly into visual/width, etc. lengths (this is more
97       about usage of the unit module in various other modules) (TODO: update
98       documentation)
99     - support for string initialization removed
100     - support for initialisation with other length removed
101   - canvas module:
102     - added new classes page and document for multipage PostScript output
103   - style module:
104     - decrease interval for dotted and dash-dotted lines for better visual
105       appearance
106   - setup.py and distribution:
107     - create siteconfig on install to store positions of the shared data
108       and the global pyxrc
109   - graph modules:
110     - enum -> num renaming
112 0.6.3 (xxxx/xx/xx):
113    - graph module:
114      - fix drawing with background
115      - fix insertion of a zero length path when the whole line is outside
116        the valid axis range (reported by Marko Vendelin)
118 0.6.2 (2004/04/07):
119   - graph module:
120     - fixed title=None + graph key issue reported by Gabriel Vasseur
121     - graph.axis.painter.plain -> graph.axis.painter.regular
122       (as it was in parts of the documentation already)
123     - changeable-gridattrs-become-None-bug fixed
124     - graph style cutting outside lines (double-)fixed
126 0.6.1 (2004/03/31):
127   - fixes missing install of the graph and axis directories introduced in 0.6
128   - some minor updates to the faq
130 0.6 (2004/03/30):
131   - graph module:
132     - reorganisation of the graph structure finished (there might be some
133       small pending issues, but the basic restructuring is done with this release):
134       - graph splitted into several modules in pyx/graph and pyx/graph/axis
135       - painters are using the new attribute scheme including changeable
136         attributes
137       - graph styles rewrite
138       - graph data rewrite
139     - axis zeropath feature has been removed
140     - mergelabels removed; linpart doesn't have a label argument anymore
141     - names and texts removed from baraxis
142     - iteration on graph style, when it is used several times in the same graph
143     - symbols + lines -> symbollines; symbols do not allow setting lineattrs,
144       and lines not symbolattrs
145     - manual line clipping (do not include unneeded line segments when the
146       axis range is set manually etc.)
147     - automatic file key titles
148     - graph.data now also includes the old data module
149     - data.list adds (by default) a line number like data.file
150       (thus regular columns are counted from 1)
151   - path:
152     - added new pathels multilineto_pt and multicurveto which allows to specify
153       a list of points and can thus be much more efficient
154     - internal methods return coordinates in pts
155     - arclentoparam returns only parameters not total length
156     - added path.arclength_pt, path.at_pt, path.begin_pt, path.end_pt (and
157       correspondingly for normpath)
158     - complete refactoring of the normpath class: normpaths now consist of
159       normsubpaths which themselves consist of normlines and normcurves This is
160       much more convenient for any routines working with normpaths.
161     - reversing of closed sub paths does not change the first point of the sub
162       path
163     - renamed: arclength -> arclen
164     - renamed: lentopar -> arclentoparam
165     - renamed: glue -> joined
166     - normpath now supports join, the in-place version of joined
167     - path and normpath method raise exception instead of returning None
168       when parameter is out of range
169     - the accuracy epsilon can now only be specified in normpath and normsubpath
170       constructor and no longer in arguments of path and normpath methods
171     - negative parameters are no longer supported in path and normpath methods
172     - path and normpath methods which accept parameter value param now
173       alternatively accept an arc length
174   - deco module:
175     - cycloid decorator
176     - smoothed decorator
177     - arrow heads are no longer stroked (as suggested by Magnus Lie Hetland)
178   - canvas:
179     - writeEPSfile deprecates writetofile
180     - internally, write methods are renamed in outputPS
181     - canvas constructor no longer accepts variable argument list but
182       expects a list of attrs as first argument (defaulting to []) and
183       a texrunner as second argument (defaulting to text.defaulttexrunner)
184     - set, draw, stroke and fill no longer return self, i.e., the canvas, but None
185   - bbox module:
186      - added inplace add (__iadd__), enlarge and transform methods
187      - callers use inplace add where possible now (yielding a considerable
188        speedup)
189     - "undefined" corners of bounding boxes are no longer supported which makes
190       the bounding box operations much more efficient.
191   - connnector module:
192     - renamed _xxx -> xxx_pt
193   - epsfile module:
194     - removed showbbox argument of epsfile class
195   - text module:
196     - default handling of texmessages as in the new attribute scheme
197     - multiple insert bug fixed
198     - made left, right, width, height, depth information available (x length
199       not taking into account box transformations)
200     - ignore tex message "Please type a command or say `\\end'"
201     - added textboxes that are sequentially filled (experimental)
202   - examples:
203     - mandel.py (contributed by Stephen Phillips)
204   - unit module:
205     - length comparision (David Beach)
206     - x-scale for TeX
207     - more unit tests
208   - mathtree module:
209     - switched to the new parser using pythons parser module
210   - data module:
211     - removed, it all lives in the graph.data module now, while before it
212       was splitted into two separate modules
213   - tex module:
214     - not imported by default anymore
215     - obsolete warning when importing this module
217 0.5.1 (2004/01/22):
218   - distribution:
219     - include missing c-files for optional extension modules
220   - prolog module:
221     - fix unpaired BeginProcSet/EndProcSet in font enconding
223 0.5 (2004/01/20):
224   - setup.py and distribution:
225     - allow customization of the extension modules built (via setup.cfg)
226     - disable building pykpathsea module by default
227     - more detailed description of install process in INSTALL
228     - provide more information and pointers to other files in README
229     - include example data files in distribution (suggested by Andrea Riciputi)
230     - force dvips to write ps files instead of printing them (suggested by Otto Tronarp)
231     - includ pyxfaq.pdf in distribution
232   - text module:
233     - improved is-readable test for lfs files and pyx.def file
234     - explicitly quit (La)TeX in cleantmp (helps when quitting with <Ctrl>C)
235     - showwaitfortex implemented following a suggestion by Fernando Perez
236       (waitfortex is increased to 60 seconds now)
237     - support of TeX extension --ipc for reading dvi results while TeX keeps running
238     - configurable font mapping files (via pyxrc or parameter of the texrunner constructor)
239     - markers to get access to positions within TeX expressions
240     - fix: allow for e-tex in texmessage.start (reported by Andrea Riciputi)
241     - fix: print warning at syntax errors in font mapping file and continue (cf. bug #795271)
242     - remove limitation on number of fonts in dvi file
243     - added native virtual font support
244     - dvicopy support not needed anymore (it is still available, but obsolete and
245       removed from the documentation)
246     - do not include too many glyphs in the eps file
247     - _xxx -> xxx_pt renaming
248   - dvifile module (NEW):
249     - separated from the text module
250     - dvifile class returns standard pyx canvas instances on readpage
251   - graph module:
252     - removed manualpart and partitioners mix keyword
253     - results of the splitting at "=" in graph.function were not stripped
254     - skip title=None in key (cf. bug #821284), properly align a single key entry
255     - another (the last?!) axis redesign: axispos -> class of its own
256     - some axispos name have changed slightly (zeroline -> zeropath etc.)
257     - tick/data-vmin/vmax removed
258     - pathaxis
259     - linkaxis
260     - minor enhancements in exponentionaltexter
261     - axes alongs paths including a set of examples
262     - mixing a partitioner and manual ticks by two distinct keyword arguments now
263     - _xxx -> xxx_pt renaming
264     - part -> parter renaming
265   - canvas module:
266     - stroke, fill, draw, set and insert do no longer accept variable length argument lists but
267       an attribute list as last argument
268     - stroke and fill now support trafos (TODO: documentation)
269     - uppercase version of a4, a3, ... paperformats
270   - config module:
271     - new module for loading PyX configuration information
272   - pyx module:
273     - automatically import main modules into pyx namespace as suggested by Fernando 
274       Perez.
275   - path module:
276     - check for sorting of parameter list passed to path.split method
277     - _xxx -> xxx_pt renaming
278   - deco module (NEW): 
279     - contains decoratedpath and decorators from canvas module
280     - all predefined decorators are instances now (deco.stroked is thus ok) and 
281       attributes have to be passed explicitely, e.g., deco.earrow.small(attrs=color.rgb.red) 
282       and deco.stroked([color.rgb.blue])
283   - style module (NEW):
284     - contains all line- and fillstyles which formerly had been defined in the canvas module
285     - dash now supports relative dash lengths (as suggested by Otto Tronarp)
286   - mathtree module:
287     - fixed incorrect handling of - (for instance -x**2 was not negative)
288   - attrlist module:
289     - contents have been moved to the (obsolete) tex module, which was the only user anyhow, and
290       the module itself was removed
291   - t1strip module:
292     - new fallback solution in pure python
293     - bugfix: pyxadapt.h needs to open files binary under Windows (reported by Gary Pajer)
294   - box module:
295     - _xxx -> xxx_pt renaming
296   - trafo module:
297     - _xxx -> xxx_pt renaming
299 0.4.1 (2003/09/17):
300   - canvas module:
301     - "in" to "inch" in paperformats
302   - text module:
303     - fix pyx.def hack occuring whenever \ProcessOptions* was used by a package
304   - pykpathsea module:
305     - implement different file formats for Python version of module
306   - t1strip module:
307     - python fallback solution should behave the same way as c extension module (closes SF bug #799182 reported
308       by Marcus Mendenhall)
309   - __init__.py:
310     - added "connector" to __all__
312 0.4 (2003/08/22):
313   - graph module:
314     - separate texter out of the axispainter
315     - axis/partitioner/texter/painter/axispos redesign & interfaces
316     - tick.text is renamed to tick.label
317     - ticks and labels are renamed to tickpos/tickdist and labelpos/labeldist in partitioning
318     - ticks can be used in the part to mix a partitioner with some manual ticks
319       -> manualpart and the mix technique is not needed anymore
320          (both things are still available and working, but they will be removed in the future)
321     - _ensurefrac is implemented inside the frac constructor now; initialization is possible by:
322       - a (enum, denom) tuple now (previously there were two arguments)
323       - a string (as before via _ensurefrac)
324       - exponential strings are allowed as well (e.g. "1e10" etc.)
325       - a float (precision is determined by floatprecision -- the number of decimal places)
326     - dense -> density
327     - axis.maxworse
328     - axis interface
329   - text module:
330     - reset() method for the texrunner
331     - automatic restart of a TeX instance with the same preamble (preamble changes are not possible)
332     - texmessage.loadfd for accepting font description loading
333     - don't bail out on width_index == 0, but mark character invalid instead
334     - dvicopy flag
335     - support for specials; pyxgraphics flag
336     - support psfonts.map: font names, font encodings
337     - bugfix \def\ProcessPyXBox -> \long\def\ProcessPyXBox
338     - improved lfs handling
339   - data module:
340     - full documentation via doc strings
341   - connector module:
342     - some preliminary version
343   - box module:
344     - multiple radii (up to two per point) and softnesses
345     - ensurecenter added --- do we always force the creation of a center?
346   - path module:
347     - lentopar methods added including some tests
348   - epsfile module:
349     - new parameter bbox allows to override the bounding box of the eps file
351   bugfixes:
352   - text module:
353     - derive TFMError and DVIError correctly from exceptions.Exception
354     - close files and pipes, if they are no longer used (thanks to Marcus Mendenhall)
355     - remove DeprecationWarning in Python 2.3 (thanks to Marcus Mendenhall)
356   - box module:
357     - correct rounding algorithm (Michael Schindler)
358   - graph module:
359     - refer to the graphs texrunner instead of the defaulttexrunner (cf. #728209)
360     - rounding towards zero bugfix in autolinpart
361     - log axis range rating bugfix
362   - mathtree module:
363     - addarg bugs (#738724)
364   - epsfile module:
365     - fix mixing up of height and width in scale calculation
366   - and various other fixer here and there
368 0.3.1 (2003/04/04):
369   - text module:
370     - fix bug in dvi rule code where width was height
371     - fix preamble attribute checking bug
372     - fix texmessage.load pattern search instead of pattern match bug
373     - renamed vbox to parbox (was done in 0.3 partially only)
374   - data module:
375     - allow for tuples in arguments of the data class
376     - convenience: exchanged order of named parameters in data.data
377   - graph module:
378     - convenience: allow for part=None in _axis (base of linaxis and logaxis)
379   - examples:
380     - added a latex example (requested)
381     - added a attributechange example (requested)
382     - added back the integral example (requested; prior PyX 0.3 it was part of the user manual)
383     - small change in vector example (allow for the access to the texrunner)
384     - examples included in source distribution
385   - canvas module:
386     - correct arrow template calculation for very short paths
388 0.3 (2003/03/31):
389   - examples
390     - new easy to use example generation (will hopefully lead to nice examples)
391   - unit box:
392     - new module for handling of convex polygons (taken out of the graph module)
393   - unit helper:
394     - new module containing a collection of helper functions (taken out of the graph module)
395     - moved the attrlist into helper -- as plain functions; attrlist becomes obsolete
396   - text module:
397     - new module: a new and preferable integration of TeX/LaTeX
398   - t1strip module:
399     - strip glyphs from pfa/pfb-fonts
400     - there is a C implementation taken from pdftex
401     - fallback solution via an external program (pfb2pfa)
402   - pykpathsea module:
403     - (partial) C binding to libkpathsea
404     - fallback solution via an external program (kpsewhich)
405   - graph module:
406     - removed some code duplication (various axis painters)
407     - use text module instead of the obsolete tex module
408     - allow for tailing zeros of automatic generated labels
409     - allow for missing data in bar graphs -> skipmissing parameter
410     - remove the support for variables given as keyword arguments in data constructor
411     - use context instead of extern for extern variables and functions
412     - graph keys; titles in data/function/etc.
413   - unit module:
414     - new classes for visual and width lengths, aliases for user length (u_pt = pt)
415     - all length classes have now by default a quantifier 1 (instead of 0), such that,
416       for instance, 5*unit.t_cm() == unit.t_cm(5)
417     - default_unit now has to be set via unit.set. For instance: unit.set(defaultunit="m").
418     - convert_to is now an internal function, which moreover does not longer accept tuples or lists
419   - bbox module:
420     - new class _bbox (the former bbox) which accepts points in the constructor. This is used
421       for internal purposes.
422     - the bbox constructor now accepts user lengths in the constructor.
423     - new methods height, width, top, bottom, left, right
424     - ll & ur ???, what about ul and lr -> ugly!
425     - enlarge (was enhance) now allows selective enlargement to the left, bottom, right and top
426     - output HiResBoundingBox
427     - never reduce bbox upon output
428   - epsfile module:
429     - new constructor signature, more in line with rest of PyX:
430       epsfile(x, y, filename, **additional_args)
431   - data module:
432     - removed additional column support in addcolumn; removed _addcolumn
433     - line reduction for datafile like the every parameter in gnuplot
434   - canvas module:
435     - new way of PS prolog generation that writes only necessary parts
436     - added support for patterns
437     - canvas.insert() now supports arguments
438     - bbox of canvas can be specified in writetofile command explicitely
439     - writetofile does not return self anymore
440     - arrow template now uses intersection with circle to get size right
441       (as per a suggestion by Michael Schindler)
442   - mathtree module:
443     - added abs function
444     - changed the handling of extern functions and all variables
445   - color module:
446     - gradient renamed to palette
447   - numerous bugfixes:
448     - problem with sizefile on windows (tex module)
449     - allow for strings in graphxy's width and height; allow for width only (graph module)
450     - disable rating for labelattrs equals None (graph module)
451     - defaultstyle selection, when a list of data is provided to the plot function (graph module)
452     - traverse when adding functions as arguments of operators (mathtree module)
453     - allow for extern functions in addcolumn (data module)
454     - just one common place for the version number
455     - fix incorrect exception name MathError (path module)
456     - prevent double return of intersections for closed sub paths
457     - ...
459 0.2 (2003/01/17):
460   - unit module:
461     - allow division of length by numbers
462   - trafo module:
463     - new transformation: slant
464     - renamed all trafo methods to use the participle (i.e translate->translated)
465     - the name of all trafo subclasses are verbs (i.e. translation->translate)
466   - graph module:
467     - mark class renamed to symbol
468     - (text-)box distance measurement
469     - moved axis partitioning to axis and axis painter
470     - automatic axis partitioning (now officially: general cleanup, distance measurement, documentation)
471     - splitaxis
472     - baraxis, baraxispainter, and bar style
473   - data module:
474     - previously named datafile module
475     - class "_datafile" renamed to class "data"
476     - class sectionfile added
477     - testsuite
478   - mathtree module:
479     - extern variables and functions (support in graph.function, graph.paramfunction and data.data)
480     - testsuite
481   - text module:
482     - deferred to Version 0.3
483     - running TeX "on the fly" is basically implemented
484   - numerous bugfixes:
485     - transformation bug (#624068, trafo module)
486     - canvas transformations (canvas module???)
487     - textbox alignment (graph module)
488     - return linewidth upon calculation with linewidths (unit module)
489     - allow column number variables with several digits
490     - ...
491   - british and american spellings (color module, graph module)
492   - small logo modifications
494 0.1 (2002/10/07):
495   - initial release