chaco

python chaco axis labels time formatting

萝らか妹 提交于 2019-12-12 10:53:37
问题 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 of the month to the american style (MMDD). I would like to add some flexibility so that the time/date format hints would somehow be passed to the TimeFormatter I dont know of any nice way to do this (other than changing the source code itself (

Chaco - Getting multiple data series to use the same axes and maps

*爱你&永不变心* 提交于 2019-12-08 13:48:17
问题 I am trying to plot several collections of data on a single plot. Each dataset can be represented as an x-series (index) and several y-series (values). The ranges of x and y data series may be different in each data set. I want to have several of these data sets display on one plot. However, when I simply add the second plot object to the first (see below) it makes a second axis for it that is nested inside the plot. I want both plots to share the same axis and for the axis bounds to be

Chaco MultiLinePlot - unable to get simple plot to display, wondering if package broken?

风格不统一 提交于 2019-12-06 11:19:01
问题 I am trying to create a multi line plot to display multiple time series data (voltages) from a 2D NumPy array. I have started very simply trying to plot two lines with ten data points from a 2x10 array, but I am not even able to get this to work without getting a large amount of error output that I am unable to debug. Imports: import numpy from traits.api import HasTraits, Instance from traitsui.api import View, Item from chaco.api import MultiLinePlot, ArrayDataSource, MultiArrayDataSource

Chaco MultiLinePlot - unable to get simple plot to display, wondering if package broken?

冷暖自知 提交于 2019-12-04 17:15:54
I am trying to create a multi line plot to display multiple time series data (voltages) from a 2D NumPy array. I have started very simply trying to plot two lines with ten data points from a 2x10 array, but I am not even able to get this to work without getting a large amount of error output that I am unable to debug. Imports: import numpy from traits.api import HasTraits, Instance from traitsui.api import View, Item from chaco.api import MultiLinePlot, ArrayDataSource, MultiArrayDataSource from enable.component_editor import ComponentEditor Test array: test_array = numpy.random.rand(10,2)