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