Questions tagged [chaco]

Chaco is a Python plotting application toolkit that facilitates writing plotting applications at all levels of complexity.

Chaco is part of the Enthought Python libraries and is designed to allow complex interactive plotting interfaces.

The home page lists the key features as:

  • Flexible drawing layout which allows nesting and complex layouts
  • Modular and extensible architecture with well defined interfaces and abstract classes which allow customisation
  • Data model for ease of extension and embedding a sophisticated "generic data pipeline"

Chaco can be used for either static publications or dynamic data visualisations. Some commonly supported plot types include:

  • Simple line, scatter or bar charts
  • Vertical plot
  • Line drawings
  • Zooming plots
  • Colormaps
  • Contour plots

Examples gallery: http://code.enthought.com/projects/chaco/gallery.php
Available from: http://code.enthought.com/chaco/
Documentation: http://docs.enthought.com/chaco/
Source Code: https://github.com/enthought/chaco

91 questions
0
votes
1 answer

Python Traits GUI recursion depth

I'm developing a GUI in python using Enthought's Traits. I keep getting a "RuntimeError: maximum recursion depth exceeded in cmp" If I flip the order in which the "Item" labels are used in my MainWindow class, the code executes fine. I can't seem…
0
votes
1 answer

The Enthought Canopy package "chaco 4.3.0-3" seems to be completely broken on OSX 10.9; looks like a font loading issue

I am running Enthought Canopy 64-bit Version 1.1.1.1452 on OSX 10.9. I am trying to get the Enthought Canopy package "chaco 4.3.0-3" up and running for 2D interactive plotting. However, even the simplest chaco demos raise an error. From the stack…
Mike Roberts
  • 381
  • 3
  • 5
0
votes
1 answer

Dynamical plot with Chaco

I need to add some points to an existent plot I do in chaco. I have tried with plot.request_redraw() but it didn't work. What else can I do? This is the piece of code: class PlotApp(HasTraits): plotdata = Instance(ArrayPlotData) returns_plot =…
F.N.B
  • 1,539
  • 6
  • 23
  • 39
0
votes
1 answer

How can I listen for changes in one plot's traits and update the second by that amount?

https://github.com/enthought/chaco/blob/master/examples/demo/edit_line.py My desired result is to have two plots side-by-side, the left is this edit_line.py plot, the right displays the sum of the y-values in edit_line.py and another array. Right…
foobuzz
  • 75
  • 7
0
votes
1 answer

Add point in interactive plot Chaco

I'm using chaco and traits.api to do an interactive plot. I can select some points in the plot, and do some calculus. Now I need update my initial plot, but I don't know how to do (I need add points). Thanks This is the code import numpy as np from…
F.N.B
  • 1,539
  • 6
  • 23
  • 39
0
votes
2 answers

Chaco and wxpython integration?

Is there an integration interface between wxpython and Chaco? Documentation seems sparse, the Anaconda package had examples for VTK and QT but not WX. This was the closest documentation I found, but it's outdated.…
Willy Zhang
  • 473
  • 4
  • 12
0
votes
1 answer

Chaco: 2 tools write the same metadata key

I have this problem with chaco. In the plot, I need select some points (are points that I generate). This points, I can select with two tools: RangenSelection and ScatterInspector. If I work with only one tool, the code work well and I can detect…
F.N.B
  • 1,539
  • 6
  • 23
  • 39
0
votes
1 answer

Interactive plot Chaco, Exception occurred in traits notification

I'm working with Chaco library. I make an interactive plot and in this plot, with chaco.tools.api RangeSelection, I can select a part of this. Now, I like know in what posision is this rectangle. With the follow code I can do all what I need, but I…
F.N.B
  • 1,539
  • 6
  • 23
  • 39
0
votes
1 answer

chaco to matplotlib conversion

Is it possible to convert chaco code to equivalent matplotlib code? For example I would like to convert this chaco code to equivalent matplotlib code. I am new dealing with matplot library. So any kind of help is highly appreciated. Code…
Abu Shumon
  • 1,834
  • 22
  • 36
0
votes
1 answer

Changing the Chaco table cell background color

I want to change the background color of a table cell in chaco but could not succeed yet.I am using TableEditor from traitsui.api and don't could not find its color attribute.Your help and advice would be much appreciated.Following is the related…
fariborz
  • 11
  • 1
0
votes
1 answer

How to make PanTool and ZoomTool behave if plot origin is 'top left'?

I'm trying to use PanTool and ZoomTool in a Chaco plot whose origin is set to 'top left' but the behavior of these tools is not as expected. Panning moves in the opposite direction and box zooming doesn't necessarily zoom to the highlighted region.…
JefferyRPrice
  • 895
  • 5
  • 17
0
votes
1 answer

react on events generated by chaco tools: how to get values out of a chaco tool when an event is fired ?

actually this should be a pretty simple question, but I am experiencing the quite steep learning curve of chaco and traits... I am currently writing an application to plot a medical image using chaco and traits and I simply want to pick a pixel…
0
votes
2 answers

referencing two objects in python how to convert array.x to self.array.self.x?

I have and array which is made up of a bunch of variables I can call. So normally I would call x using array.x after I import it. Now I've set them up as two objects which can be set by the user in a traits GUI. How would I extract the same…
Griff
  • 2,064
  • 5
  • 31
  • 47
0
votes
1 answer

Event Handling in Chaco

When hovering over a data point in Chaco, I would like a small text box to appear, with the text I desire. Also, when I click on a data point (or close enough), I would like my program to take a certain action. I have seen relevant parts of the…
awegawef
-1
votes
1 answer

matplotlib interactive plot with slices of image

How would I make an interactive plot like the one displayed here? I'd like to show an image with x and y slices of the image taken at a point that can be adjusted by clicking on the image. I know this one was made in Chaco, but since Chaco isn't…
Craig
  • 901
  • 7
  • 18