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