From: Hamish A. <ha...@gm...> - 2007-07-21 09:37:56
|
Ah, yes, I see. In which case, sorry, I don't know the answer. Best wishes, Hamish On 7/21/07, Wojciech Jaskowski <wja...@cs...> wrote: > Hi Hamish, > > I think that I didn't make myself clear. I meant the white space > between the histogram bars and the graph axes - the most left bar > touches the border. For comparison between what I find good and bad > see: > - bad: http://www.cs.put.poznan.pl/wjaskowski/tmp/histogram.pdf, > - good: http://www.cs.put.poznan.pl/wjaskowski/tmp/histogram2.pdf > > Wojciech > > On 7/21/07, Hamish Allan <ha...@gm...> wrote: > > Hi Wojciech, > > > > I think that's normal behaviour -- EPS is designed for embedding, after all. > > > > You could fetch the canvas size after you've plotted the histogram and > > plot a rectangle somewhat larger than that for a border (completely > > alpha-blended if you don't want a visible border). > > > > Best wishes, > > Hamish > > > > On 7/21/07, Wojciech Jaskowski <wja...@cs...> wrote: > > > Hi, > > > > > > First of all, I have to say I find PyX a brilliant library. > > > I have problems with histogram style. The following simple code: > > > > > > from pyx import * > > > d = graph.data.list([(1, 25), > > > (2, 7), > > > (3, 3), > > > (4, 8), > > > (5, 5)], x=1, y=2) > > > g = graph.graphxy(width=8) > > > g.plot(d, [graph.style.histogram()]) > > > g.writeEPSfile("histogram") > > > > > > generates a histogram that has no white space at the top at all (see > > > the output: http://www.cs.put.poznan.pl/wjaskowski/tmp/histogram.pdf). > > > I find it not very nice. Is it a bug or am I missing something? > > > > > > > > > > > > -- > > > Wojciech Jaskowski > > > Laboratory of Intelligent Decision Support Systems > > > Institute of Computing Science > > > Poznan University of Technology > > > Piotrowo 2, 60-965 Poznan, Poland > > > E-mail: wja...@cs... > > > www.cs.put.poznan.pl/wjaskowski > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > PyX-user mailing list > > > PyX...@li... > > > https://lists.sourceforge.net/lists/listinfo/pyx-user > > > > > > > > -- > Wojciech Jaskowski > Laboratory of Intelligent Decision Support Systems > Institute of Computing Science > Poznan University of Technology > Piotrowo 2, 60-965 Poznan, Poland > E-mail: wja...@cs... > www.cs.put.poznan.pl/wjaskowski > |