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