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