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