1 Dec 01:10
Re: [chaco2] plot origins
Bryan Van de Ven a écrit : > Fred, > > for the "Capital P" Plot object, the only settable trait is "default_origin" > Any plots created on a plot object will use this value at the time they are > created. > > If you want to change the origin after-the-fact, then right now you will have to > change the "origin" trait on the image plot itself. Something like: > > plot.plots['plot0_or_whatever'][0].origin = "top left" > > Ok. I guess I got the trick (I hope(Continue reading)BTW, the following does not reverse the y axis: if ('cmap_image_plot' in plot.plots): p = plot.plots['cmap_image_plot'][0] else: p = plot.plots['colormapped_scatterplot'][0] if (self.reversed_y_axis_flag): p.origin = plot.default_origin = 'top left' plot.x_axis.orientation = 'top' else: p.origin = plot.default_origin = 'bottom left' plot.x_axis.orientation = 'bottom' > and probably also change default_origin as well since that is what the axes > currently cue off. If you can wait over the weekend, Monday I will add some
BTW, the following does not reverse the y axis:
if ('cmap_image_plot' in plot.plots):
p = plot.plots['cmap_image_plot'][0]
else:
p = plot.plots['colormapped_scatterplot'][0]
if (self.reversed_y_axis_flag):
p.origin = plot.default_origin = 'top left'
plot.x_axis.orientation = 'top'
else:
p.origin = plot.default_origin = 'bottom left'
plot.x_axis.orientation = 'bottom'
> and probably also change default_origin as well since that is what the axes
> currently cue off. If you can wait over the weekend, Monday I will add some
RSS Feed