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