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