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