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