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
1
vote
1 answer

Can I force my enable Container to redraw from a traitsui Handler?

I have employed a traitsui.api.Handler to catch and handle events for a traitsui.api.View, that view includes a button, whose behavior is to remove a plot from a container containing multiple plots. The container's components list is accessed when…
OYRM
  • 1,395
  • 10
  • 29
1
vote
0 answers

How to resize chaco plots and remove/hide yaxis

I am trying to learn some chaco, but am having trouble editing the plots I create. I have made a grid of four plots, two scatter plots and two bar plots. I would like to be able to remove the white space between the plots, and also increase the…
Dave
  • 1,170
  • 3
  • 20
  • 30
1
vote
0 answers

How to make chaco plots use predefined colormap scale?

I have a set of data that represents thermocouple values at multiple points over time. Using Chaco I have managed to plot a heatmap of the thermocouple locations, with a slider that lets me pick the time step I want displayed. The purpose of this is…
1
vote
1 answer

Show chaco plot in running thread

How can I show a Chaco plot that is created in a running thread? I think an example will make my idea a bit clearer: Have a look at my example code that creates a plot with Chaco. from traits.api import HasTraits, Instance from traitsui.api import…
HeinzKurt
  • 612
  • 9
  • 18
1
vote
1 answer

Converting Pandas dates to Chaco compliant dates

[EDIT here is the source file https://www.dropbox.com/s/gyem3zgjzl6jtou/AAPL_result.pickle EDIT] I want to plot the dates from my pandas DataFrame on the axes in my Chaco plot I do not know how to convert the PeriodIndex in the DataFrame into…
JasonEdinburgh
  • 669
  • 1
  • 10
  • 17
1
vote
0 answers

Select a line plot in Chaco

I am writing a program that imports data files and plots the data. Plots are added and removed by the user using buttons in a traits-based ui. I have all of this working, but I would like to add a tool that allows the user to select a line on the…
josh
  • 21
  • 3
1
vote
0 answers

How do I set axis label style in chaco?

I am trying to change the axis labels on my plots in Chaco. I have generated with some code similar to the following: thisplot=Plot(alldata) thisplot.plot("xdata","ydata",value_scale="log",index_scale="log") I would like to use the _nice_sci()…
mor22
  • 1,372
  • 1
  • 15
  • 32
1
vote
1 answer

Error in py2exe python app using Chaco in pyside

enter code hereI've a program that uses Enthought's Chaco plots embedded in a pyside (Qt4) GUI. It also uses numpy, but nevermind that. The program runs fine on multiple platforms directly from Python but when I create a .exe for win32 with py2exe I…
brews
  • 661
  • 9
  • 23
1
vote
1 answer

How to use ScatterInspector and ScatterInspectorOverlay?

I would like to use the chaco tools ScatterInspector and/or ScatterInspectorOverlay with enaml. I've set up a very simple controller and view (source below) but cannot determine how to proceed. I have tried unsuccessfully to follow the minimal and…
JefferyRPrice
  • 895
  • 5
  • 17
1
vote
0 answers

Dynamic update x-axis with date and time ticks in Chaco

I show a plot with chaco and traits. In the y-axis I show the data from a file and in the x-axis I show the index. I use a timer to update the data and I increment the index but I would like to show the date and time instead of the index. I don't…
1
vote
1 answer

How to use BaseMap with chaco plots

I had developed scatter and lasso selection plots with Chaco. Now, I need to embed a BaseMap [with few markers on a map] onto the plot area side by side. I created a BaseMap and tried to add to the traits_view; but it is failing with errors. Please…
0
votes
0 answers

Why is cython expressing different Python requirements in the same build?

In trying to build Chaco using the following conda command: conda build --python=3.9 --numpy=1.23 --use-local -c dbanas -c defaults -c conda-forge conda.recipe/chaco/ and the following meta.yaml file: {% set name = "chaco" %} {% set version =…
dbanas
  • 1,707
  • 14
  • 24
0
votes
1 answer

Why is my previously successful Chaco build suddenly failing w/ Qt4 vs. Qt5 error?

A previously (several years ago) successful conda build ... of Chaco v5.0.0 is now failing with: RuntimeError: Importing from qt4 backend after selecting qt5 backend! What have I broken and how do I fix it?
dbanas
  • 1,707
  • 14
  • 24
0
votes
1 answer

AttributeError: can't set attribute after import chaco.api

I installed chaco library on windows server 2012 after too much headache but I faced a big problem after installation : pip install chaco Requirement already satisfied: chaco in c:\programdata\anaconda ... Requirement already satisfied:…
Ehsan
  • 517
  • 1
  • 7
  • 32
0
votes
1 answer

Draw horizontal / vertical marker lines in a Chaco plot

I am looking for some help to draw a marker line in a Chaco plot (equivalent to QwtPlotMarker https://qwt.sourceforge.io/class_qwt_plot_marker.html). The marker line is just an horizontal or vertical line that is drawing between ymin/ymax or…
christophe
  • 45
  • 3