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

How to automatically accommodate different display resolutions in Chaco plots?

I just upgraded to a new laptop w/ a UHD 4K display. It looks beautiful, but my Chaco plot labels are now illegibly small. I could solve the problem for myself, by increasing the font size of these labels, but then they would appear too large to…
dbanas
  • 1,707
  • 14
  • 24
1
vote
1 answer

Need to either capture a traitsui "changed tab" event or have Chaco initialize a plots dimensions

I'm trying to capture a "changed tab" event from a traitsui view. I've been circling for a while now searching, googling, and reading library source code trying to see if there's a signal/event that occurs when users change which tab has focus in…
BaleineBoy
  • 41
  • 5
1
vote
0 answers

Not all data are displayed by bar graph with chaco

With creating simple bar plot with chaco strange behavior is occured: half of plot is filled with line_color, another one with fill_color and the last one is not drawn at all (view screenshot). It is expected that data from 0 to 7000 for x and from…
sammy
  • 13
  • 4
1
vote
0 answers

Why is "pip install -U --no-deps PyBERT" failing, in the setup.py file of one of PyBERT's dependencies?

One of my users is reporting the following failure, when attempting to update the PyBERT package, using: pip install -U --no-deps PyBERT > Requirement already up-to-date: pybert in > c:\anaconda2\lib\site-packages Collecting traitsui (from pybert) …
dbanas
  • 1,707
  • 14
  • 24
1
vote
2 answers

How to have 100% zoom factor withChaco

As an example, in chaco/examples/demo/basic/image_inspector.py, how to set the zoom factor such that 1 array point corresponds to 1 screen pixel (100% zoom). It seems that the ZoomTool methods (zoom_in, zoom_out, ...) only deal with zoom factor…
Yves Surrel
  • 193
  • 1
  • 10
1
vote
1 answer

chaco - making several Containers show separate plots

I have written a chaco plotting class that plots some data and allows the user to interact with it. I then wanted to make a TraitsUI GUI that has several different instances of this chaco plot so that the user can have several of the plots and…
user2175850
  • 193
  • 2
  • 13
1
vote
1 answer

Minor ticks in Chaco plot?

The minor ticks in Chaco are always omitted: This is not always convinient. Is it possible to have minor ticks in Chaco like ones in matplotlib: Haven't found anything related.. Thanks.
funnyp0ny
  • 298
  • 1
  • 12
1
vote
1 answer

Automatic paddings in Chaco?

Is it possible to make chaco plot automatically show full output and not hiding the parts of ticks and labels? E.g. this is the output of standard example: from chaco.api import ArrayPlotData, Plot from enable.component_editor import…
funnyp0ny
  • 298
  • 1
  • 12
1
vote
1 answer

Enthought Canopy Chaco img_plot with grey scale data

I am finally getting around to trying out Chaco so this question might be naive. Currently I am trying to plot a very large 8-bit (aka grey scale aka single channel) image of type numpy.uint8. It seems no matter what I do the image comes out in…
1
vote
1 answer

Import traits error/How to compile the Enought Tool Suite so that I can use chaco in Pycharm?

Basically, I ran into the error of traits module not showing up. traits.api error in python Traceback (most recent call last): File "C:/Users/x/PycharmProjects/Enthought/.idea/Dynamic Plot.py", line 4, in from traits.api import…
Donkoid
  • 376
  • 2
  • 3
  • 10
1
vote
0 answers

How to write greek, math, superscript/subscript in chaco?

Is there a way to write greek letters, math symbols and superscript/subscript in Chaco? I could find no way to do this. Tried using unicode strings, but they are just displayed as white squares.
tiago
  • 22,602
  • 12
  • 72
  • 88
1
vote
0 answers

Traits-Enaml: Observing trait changes in Atom model

I am writing an application using the Traits-Enaml library. Most of my application is written in Atom, with the exception of some classes that need to display Chaco plots. These classes inherit from HasTraits. Example: def SomeClass(HasTraits): …
uigui
  • 11
  • 2
1
vote
3 answers

Python Pyside QT - Prevent Initialization of QT due to imports when running on CLI

So we have a rather large program written in Python using PySide/QT to get most of its GUI work done. We use Chaco to do some plotting. This program also has a full CLI interface. Every now and then a developer accidentally creates an import chain…
Halsafar
  • 2,540
  • 4
  • 29
  • 52
1
vote
1 answer

Latex in Chaco text?

Is it possible to create a chaco plot with latex text? For example, if we wanted latex symbols in the title of this exampe: from traits.api import HasTraits, Instance from traitsui.api import View, Item from chaco.api import Plot,…
Adam Hughes
  • 14,601
  • 12
  • 83
  • 122
1
vote
0 answers

chaco circle overlay tool

I would like to create a circle overlay tool with Chaco that is a much simpler version of the BetterSelectingZoom: left-down sets the circle center, drag while left-down draws the circle, left-up discards the circle. Unfortunately, I cannot quite…
user3830744
  • 131
  • 1
  • 5