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