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. André -- by _ _ _ Dr. André Wobst / \ \ / ) [EMAIL PROTECTED], http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ _______________________________________________ PyX-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyx-user
