Merge lp://qastaging/~tswast/cairoplot/trunk into lp://qastaging/cairoplot

Proposed by Tim Swast
Status: Needs review
Proposed branch: lp://qastaging/~tswast/cairoplot/trunk
Merge into: lp://qastaging/cairoplot
Diff against target: 3166 lines (+805/-560)
13 files modified
trunk/cairoplot/__init__.py (+371/-320)
trunk/cairoplot/handlers/__init__.py (+10/-0)
trunk/cairoplot/handlers/fixedsize.py (+30/-0)
trunk/cairoplot/handlers/gtk.py (+39/-0)
trunk/cairoplot/handlers/handler.py (+11/-0)
trunk/cairoplot/handlers/pdf.py (+12/-0)
trunk/cairoplot/handlers/png.py (+19/-0)
trunk/cairoplot/handlers/ps.py (+12/-0)
trunk/cairoplot/handlers/svg.py (+12/-0)
trunk/cairoplot/handlers/vector.py (+17/-0)
trunk/cairoplot/series.py (+239/-239)
trunk/gtktests.py (+32/-0)
trunk/seriestests.py (+1/-1)
To merge this branch: bzr merge lp://qastaging/~tswast/cairoplot/trunk
Reviewer Review Type Date Requested Status
Rodrigo Moreira Araújo Pending
Review via email: mp+20838@code.qastaging.launchpad.net

Description of the change

This is largely an architectural change. It seems to make some sense to me that the various ways of creating a Cairo canvas should be separate from the Plots which use those canvases. This is inspired by the Lua port of Cairo plot.

Also, this adds the ability to easily embed Cairo Plot inside a GTK application. This opens the door to being able to do interactive plots.

Finally, Bug #426559 (PDF output broken) is fixed by these changes. The PDF handler correctly creates a PDF Cairo surface.

I've run the tests included, and it seems to be 100% compatible.

To post a comment you must log in.
43. By Tim Swast

Removed trailing white-space.

44. By Tim Swast

Improved plot labels, so we don't get a 20 char long representation for what is effectively 0.

45. By Tim Swast

Removed trailing white-space.

46. By Tim Swast

Hacked together "fix" for infinite loop caused by xmin==xmax.

47. By Tim Swast

Fixed bug with plotting multiple equations in FunctionPlot.

48. By Tim Swast

Added checks to allow plotting functions with axes outside valid bounds of equation.

49. By Tim Swast

Fixed nan check for python 2.5.

50. By Tim Swast

Added OverflowError detection to make plotting more robust.

Unmerged revisions

50. By Tim Swast

Added OverflowError detection to make plotting more robust.

49. By Tim Swast

Fixed nan check for python 2.5.

48. By Tim Swast

Added checks to allow plotting functions with axes outside valid bounds of equation.

47. By Tim Swast

Fixed bug with plotting multiple equations in FunctionPlot.

46. By Tim Swast

Hacked together "fix" for infinite loop caused by xmin==xmax.

45. By Tim Swast

Removed trailing white-space.

44. By Tim Swast

Improved plot labels, so we don't get a 20 char long representation for what is effectively 0.

43. By Tim Swast

Removed trailing white-space.

42. By Tim Swast

Added Handler for created plots in as a GTK widget.

41. By Tim Swast

Created "Handlers" for different file formats to move surface creation code out of Plot objects (inspired by LuaPlot).

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches