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