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