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