You can subscribe to this list here.
2003 
_{Jan}
(1) 
_{Feb}
(2) 
_{Mar}
(6) 
_{Apr}
(11) 
_{May}

_{Jun}
(2) 
_{Jul}

_{Aug}
(1) 
_{Sep}
(15) 
_{Oct}
(12) 
_{Nov}
(11) 
_{Dec}
(18) 

2004 
_{Jan}
(57) 
_{Feb}
(16) 
_{Mar}
(3) 
_{Apr}
(14) 
_{May}
(35) 
_{Jun}
(41) 
_{Jul}
(19) 
_{Aug}
(25) 
_{Sep}
(14) 
_{Oct}
(36) 
_{Nov}
(41) 
_{Dec}
(29) 
2005 
_{Jan}
(44) 
_{Feb}
(21) 
_{Mar}
(17) 
_{Apr}
(45) 
_{May}
(23) 
_{Jun}
(26) 
_{Jul}
(30) 
_{Aug}
(9) 
_{Sep}
(120) 
_{Oct}
(34) 
_{Nov}
(17) 
_{Dec}
(6) 
2006 
_{Jan}
(23) 
_{Feb}
(56) 
_{Mar}
(78) 
_{Apr}
(14) 
_{May}
(87) 
_{Jun}
(52) 
_{Jul}
(69) 
_{Aug}
(41) 
_{Sep}
(53) 
_{Oct}
(37) 
_{Nov}
(8) 
_{Dec}
(17) 
2007 
_{Jan}
(32) 
_{Feb}
(3) 
_{Mar}
(21) 
_{Apr}
(29) 
_{May}
(14) 
_{Jun}
(9) 
_{Jul}
(30) 
_{Aug}
(26) 
_{Sep}
(6) 
_{Oct}
(9) 
_{Nov}
(7) 
_{Dec}
(6) 
2008 
_{Jan}
(9) 
_{Feb}
(19) 
_{Mar}
(46) 
_{Apr}
(44) 
_{May}
(28) 
_{Jun}
(32) 
_{Jul}
(37) 
_{Aug}
(14) 
_{Sep}
(7) 
_{Oct}
(3) 
_{Nov}
(15) 
_{Dec}
(3) 
2009 
_{Jan}

_{Feb}
(6) 
_{Mar}
(7) 
_{Apr}

_{May}
(20) 
_{Jun}
(8) 
_{Jul}
(5) 
_{Aug}
(6) 
_{Sep}

_{Oct}
(45) 
_{Nov}
(8) 
_{Dec}
(20) 
2010 
_{Jan}
(3) 
_{Feb}
(1) 
_{Mar}
(12) 
_{Apr}

_{May}
(3) 
_{Jun}
(12) 
_{Jul}
(1) 
_{Aug}
(2) 
_{Sep}
(3) 
_{Oct}
(11) 
_{Nov}
(5) 
_{Dec}
(6) 
2011 
_{Jan}
(4) 
_{Feb}

_{Mar}

_{Apr}
(13) 
_{May}
(9) 
_{Jun}
(12) 
_{Jul}
(12) 
_{Aug}
(2) 
_{Sep}
(11) 
_{Oct}
(8) 
_{Nov}
(2) 
_{Dec}
(16) 
2012 
_{Jan}
(23) 
_{Feb}

_{Mar}

_{Apr}
(2) 
_{May}

_{Jun}

_{Jul}

_{Aug}

_{Sep}
(6) 
_{Oct}
(7) 
_{Nov}

_{Dec}
(3) 
2013 
_{Jan}
(1) 
_{Feb}

_{Mar}

_{Apr}
(2) 
_{May}
(7) 
_{Jun}
(6) 
_{Jul}
(2) 
_{Aug}
(12) 
_{Sep}

_{Oct}
(3) 
_{Nov}

_{Dec}
(3) 
2014 
_{Jan}

_{Feb}

_{Mar}

_{Apr}
(2) 
_{May}

_{Jun}

_{Jul}

_{Aug}

_{Sep}

_{Oct}

_{Nov}
(3) 
_{Dec}

S  M  T  W  T  F  S 

1

2

3

4

5

6

7

8

9

10

11
(2) 
12

13
(6) 
14

15

16

17

18

19

20
(5) 
21
(3) 
22

23

24

25

26

27

28

29

30
(7) 
31





From: Andre Wobst <wobsta@us...>  20060111 22:01:36

Hi Dani, On 11.01.06, Dani Marti wrote: > I'd like to insert two graphs on the same canvas. One is a normal xy > graph, and the other is a histogram of the y values. My problem is, how > can I insert the histogram rotated 90 degrees clockwise, at the right of > the xy graph? In short, is it possible to rotate a graph? Sure, when you insert an object into another one you can apply a transformation (or even several transformations). But you don't need that as far as I understand what you want to do ... see the example below. > The idea I have in mind is to stress the meaning of a histogram as a > 'projection' of the number of occurences on the y axis. Right. This is something which I have in mind too. But this is something we should implement by a special data source (maybe a data source which use the histogram style as the default style). It could even be named histogram ... in graph.data ... we only need to think about the parametrization (i.e. the constructor arguments). The rest is almost trivial. Ok, let's do some coding ... from random import random from pyx import * _min, _max = min, max c = canvas.canvas() # note that an insert returns the inserted object ... g = c.insert(graph.graphxy(width=8)) # note that graph.data.list adds a line number at index 0 by default ... g.plot(graph.data.list([[random()] for i in range(100)], x=0, y=1), [graph.style.line()]) # you can apply (a) transformation(s) when inserting objects into other objects ... g = c.insert(graph.graphxy(width=8, xpos=10), [trafo.rotate(10, 10, 0)]) # we're creating automatic histograms out of tuples here ... g.plot(graph.data.list([[random(), (i+0.5)/10] for i in range(10)], x=1, y=2), [graph.style.histogram(autohistogramaxisindex=1)]) c.writeEPSfile("histogramfix") ################################################ # but there is a quite different, much more flexible way of specifying histograms ... g = graph.graphxy(width=8) # we prepare histogram data like for errorbars in one graph dimension. # The histogram style will take care of the rest ... and here you can # exchange the meaning of x and y just by the column names of your data ... randomlist = [random() for i in range(10)] randomlist.sort() d = graph.data.list([[min, max, random()] for min, max in zip(randomlist, randomlist[1:])], xmin=1, xmax=2, y=3) g.plot(d, [graph.style.histogram()]) g.writeEPSfile("histogramvary") ################################################ # make a simple histogram data source ... class histogramdata(graph.data._data): defaultstyles = [graph.style.histogram()] def __init__(self, l, title=None, min=None, max=None, sections=10, histogramaxis="x", valueaxis="y"): # well, the parametrisation is a problem, yes self.title = title if min is None: min = _min(*l) if max is None: max = _max(*l) self.columns = {"%smin" % histogramaxis: [min+(maxmin)*i*1.0/sections for i in range(sections)], "%smax" % histogramaxis: [min+(maxmin)*(i+1.0)/sections for i in range(sections)], valueaxis: [len([d for d in l if min+(maxmin)*i*1.0/sections <= d < min+(maxmin)*(i+1.0)/sections]) for i in range(sections)]} # then it all comes down to ... g = graph.graphxy(width=8) g.plot(histogramdata([random() for i in range(1000)])) g.writeEPSfile("histogramdata") # Simple and powerful, isn't it? André  by _ _ _ Dr. André Wobst / \ \ / ) wobsta@..., http://www.wobsta.de/ / _ \ \/\/ / PyX  High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ 
From: Dani Marti <daniel.marti@up...>  20060111 20:10:11

Hi all, I'd like to insert two graphs on the same canvas. One is a normal xy graph, and the other is a histogram of the y values. My problem is, how can I insert the histogram rotated 90 degrees clockwise, at the right of the xy graph? In short, is it possible to rotate a graph? The idea I have in mind is to stress the meaning of a histogram as a 'projection' of the number of occurences on the y axis. from pyx import * from random import gauss from scipy import arange, transpose, array, zeros, randn from scipy.stats.stats import histogram c = canvas.canvas() # The first graph #  g = graph.graphxy(width=8, height = 5) mean = 1.0 stddev = 0.2 data = zeros(1000) data = data + mean + stddev * randn(1000) # Maybe this is not necessary, but I can't think of # any easier way data_list = [[i,m] for i,m in enumerate(list(data))] g.plot(graph.data.list(data_list, x=1, y=2)) c.insert(g) # The second graph: a histogram #  # This is probably an awkward way to generate histograms. # It doesn't work, but this is not the matter here. n_bins = 50 histo, bin_min, bin_width, pts_outside = histogram(data[:], numbins=n_bins) x_histo = scipy.arange(bin_min + 0.5 * bin_width, step = bin_width, stop = bin_min + n_bins * bin_width) data_histo = transpose(array([x_histo, histo])) h = graph.graphxy(width = 5, height = 2) h.plot(graph.data.list(data_histo, x=1, y=2), [graph.style.histogram()]) ... And now, I'd like to rotate graph 'h' before inserting it at the right of graph g. I'm sorry if this question does not make any sense. Thanks a lot, guys PS Any advice about how to plot the histogram in this example will also be greatly appreciated. 