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
15
votes
1 answer

Dynamically create plots in Chaco

The Chaco plotting toolkit for Python includes examples that show how to dynamically update existing plots. However, my application requires that I dynamically create and destroy plots depending on the data. I am new to programming with Chaco and…
Andreas
  • 433
  • 1
  • 5
  • 14
14
votes
1 answer

Dealing with timeseries gaps in Chaco

I have a standard financial timeseries of data which has gaps for when the market is closed. The problem is Chaco displays these gaps, I could use a formatter in matplotlib as follows and apply to the x-axis to get around this but I am unsure what I…
Marcus1219
  • 217
  • 2
  • 8
8
votes
4 answers

Python: Embed Chaco in PyQt4 Mystery

How do i go about adding Chaco to an existing PyQt4 application? Hours of searches yielded little (search for yourself). So far i've figured i need the following lines: import os os.environ['ETS_TOOLKIT']='qt4' i could not find PyQt4-Chaco code…
random guy
  • 2,225
  • 6
  • 24
  • 24
7
votes
5 answers

Region-of-interest drawing tool for image analysis (in python)

In an effort to move away from IDL and Matlab, I'm exploring what kind of tools I need to implement in python/scipy et al. One common feature is to display medical images and outline regions of interest (e.g. defroi in IDL or, it's GIU version,…
DrSAR
  • 1,522
  • 1
  • 15
  • 36
5
votes
1 answer

python chaco axis labels time formatting

In Enthought's Chaco, the TimeFormatter class is used to format the time string of the tick labels. is there a way to specify the time format (something like time.strftime()). the source code now hard-codes the format when displaying month and day…
bandana
  • 3,422
  • 6
  • 26
  • 30
4
votes
1 answer

Embedding chaco in GTK

Embedding Chaco into Qt and Wx seems to be no problem. Does anyone have an example or an idea how to embed Chaco into GTK?
Fookatchu
  • 7,125
  • 5
  • 28
  • 26
4
votes
0 answers

Simple popup dialog opens too long with Chaco

I need the small popup dialog to appear at cursor position when user clicks my Chaco plot. But when there are many points in the plot (~100.000) the popup window loads too slow (1-2 seconds) and not responsive in the beginning. So the application…
funnyp0ny
  • 298
  • 1
  • 12
4
votes
2 answers

How to plot multiple (x,y) series on the same axes with Chaco?

I have several sets of (x,y) data that I'd like to plot as line plots on the same figure. I have no trouble with matplotlib doing this, but I cannot get the same results with Chaco. Code and output are shown below. My matplotlib-based code looks…
JefferyRPrice
  • 895
  • 5
  • 17
4
votes
2 answers

pip install enable fails

Currently trying to install Chaco with the use of pip in my 2.7.3 environment. When I run pip install chaco it fails with this error: error: Command "llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g…
Tyler
  • 41
  • 2
3
votes
1 answer

Updating data for a component of Chaco HPlotContainer

I have an HPlotContainer with 2 empty LinePlots as defaults, created using create_line_plot() factory function. I then perform some calculations and would like to update the plots. How do I access the ArrayPlotData of a LinePlot? I have tried…
MindV0rtex
  • 336
  • 1
  • 9
3
votes
1 answer

How to restore chaco plot axes to default settings after using tools?

I'm using a chaco scatter plot with a PanTool and a ZoomTool. After interacting with the plot via panning and zooming, I'd like to have a button to reset the plot to its default state, basically like the matplotlib home button. I've searched through…
JefferyRPrice
  • 895
  • 5
  • 17
3
votes
1 answer

chaco plot range dynamic update

I have a series of chaco plots that are dynamically updated with a timer object. I would like to set the Y ("value" in chaco speak) limits when the data changes. When I initialise the plot object I call obj.alldata =…
mor22
  • 1,372
  • 1
  • 15
  • 32
3
votes
3 answers

Interactive visualization of connections between cells in a matrix

I have plotted a matrix using matplotlib. I am wondering if it is possible to yield some interactivity to this plot using some toolkit/module. Based on our analysis we know a priori which cell of the matrix is connected to other cells. What we…
Abhi
  • 6,075
  • 10
  • 41
  • 55
2
votes
1 answer

Interactive 2D plotting in python

I'm trying to write a program that creates a 2D grid in which the user chooses some edges between the points in the grid. Then the program dynamically manipulate those edges(eg. flip them, connect them, ...) till it converges to a particular…
user972432
  • 317
  • 2
  • 8
2
votes
1 answer

Profiling Python - Streaming Audio and spectrum

I'm trying to modify this example: https://svn.enthought.com/enthought/browser/Chaco/trunk/examples/advanced/spectrum.py. Unfortunately I have not been able to get it to scale. If I double the sampling rate, the graph lags from the sound input. I'd…
Gus
  • 4,375
  • 5
  • 31
  • 50
1
2 3 4 5 6 7