On Fri, 16 Jun 2006 07:24:12 +0200
Andre Wobst <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> On 15.06.06, trevorw wrote:
> > > > On Thu, 15 Jun 2006, trevorw apparently wrote: 
> > > > What goes wrong when you just reverse the roles of x and y
> > > > and make the y axis a bar axis?
> > > > 
> > > 
> > > I didn't realize it was so easy. Done. Works fine.
> 
> :-)
> 
> > Oops. The change was a function of the resize box in my latex
document
> > not the eps file created by pyx.
> 
> I'm just reading the thread and was wondering about unexpected changes
> in the font *sizes*. But this seems solved now. BTW in case you want
> equal the size of the bars for different number of bars: For that you
> need to adjust the size of the graph yourself. As far as I've ever
> thought about graphs the size of a graph will never depend on the
> stuff plotted within the graph. This is a feature. The calculation of
> the size of the bars is done by a "size" variable on the involved axis
> data instances (bar axis and its subaxes). An easy solution to
> completely automate the graph size calculation for equal bar sizes
> could be to first create a graph for a given size along the bar axis.
> Then read out the size (in arbitrary units) after a g.dolayout() given
> by g.axes["..."].data.size and use this to create a second graph
> instance of the proper size. (Note that the bar axis size is
> independend of the graph size). While this sounds a bit complicated, I
> think this is a reasonable solution since it's a quite special problem
> to be solved.
> 

What I've done which seems simpler to me is to define a width for each
bar and simply multiply the number of bars by this value and then use
this value to specify graph width (in my case height as I'm using a
horizontal graph) and it appears to function fine.

T
-- 
Trevor Wiens


_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to