Hi,

On 16.06.06, trevorw wrote:
> > 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.

Sure. This is simpler, but it does not adjust the size automatically.
And there are options to change the withs of the bars in a way, which
you would need to recalculate manually as well. Think of the dist and
firstdist and lastdist parameters. Anyway, I just thought about a
fully automated solution and whether the current situation would not
easily allow for creating such a solution. While I do not claim my
suggestion is exactly beginner friendly, it can be implemented easily
and it should do the job very well. There is not need to question the
design of the graph system in general. (And that's what I'm really
interested in to see, whether at some point we need certain redesigns,
since those things need to be planed on the long run ...)


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/

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to