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}

2015 
_{Jan}

_{Feb}
(5) 
_{Mar}
(5) 
_{Apr}

_{May}

_{Jun}

_{Jul}

_{Aug}

_{Sep}

_{Oct}

_{Nov}

_{Dec}

S  M  T  W  T  F  S 





1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27
(1) 
28
(1) 
29
(4) 
30
(6) 
31

From: Michael SCHINDLER <mschindler@us...>  20130830 16:24:48

Hello André and Jörg, On 30/08/13, Joerg Lehmann wrote: > But fair enough. Let's use lineattr=None. It is better anyways. > I just did not think about it. Neither did I. This is yet another reason to make it an example/gallery. Cheers, Michael 
From: André Wobst <wobsta@us...>  20130830 15:04:55

Hi Jörg, Am 30.08.2013 um 16:56 schrieb Joerg Lehmann: > Concerning the bounding box handling, you're right. That also > immediately came to my mind. Still, I wondered why there is > deco.stroked.clear  and why it did not work. Because it needs to be there for completeness. And there are usecases. For example, the bordered symbols (trianlge, square, circle) might be used with symbolattr=[deco.filled(), deco.stroked.clear] ... André  by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim / \ \ / ) wobsta@..., http://www.wobsta.de/ / _ \ \/\/ / PyX  High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ 
From: Joerg Lehmann <joergl@us...>  20130830 14:56:34

And here's the attachment :) On 30.08.13, André Wobst wrote: > Hi, > > I like the code, and I think it is a useful example. So yes, I agree, it is a good example or gallery contribution. I'm slightly addicted to make it an example. > > Regarding the issue with the decorated path not being stroked nor filled, the solution is rather simple. You can set the lineattr to None to skip stroking. This is a common way to turn off an output in the graph while all work related to generating the output is still in place (thus the path for the line is still generated). > > I favor to keep the error in the decorated path. While I could slightly simplify some graph code, it is still strange to draw a path without actually creating output. In addition, would this "output" still contribute to the bounding box or not?! And last but not least, take the regular user, who might accidentally call draw without a stroke or fill decorator. I prefer to raise an error for that case. This code was written with Jörg and me together (IIRC), and I'm pretty sure we discussed the pro and contra and putted the exception on purpose in the end. > > Best, > > > André > > > Am 30.08.2013 um 12:00 schrieb Joerg Lehmann: > > > Hi Michael, > > > > First of all, I think this is something that would also be useful for > > the examples or the gallery. > > > > Your code can be simplified a bit though, because the << operator > > (respectively PS/PDF) will add straight lines automatically and the > > closepath is automatically done while filling. > > > > Concerning the second graph: We should find a way that this is not > > necessary. In principle, there already is deco.stroked.clear, which > > prevents stroking of the path. See my attached new version. > > > > However, this currently does not work because PyX will complain about > > the fact that the path is neither stroked nor filled. This is an > > explicit check, we could remove (see line 237 in the latest > > pyx/deco.py). André, what do you think? > > > > Cheers, > > > > Jörg > > > > On 29.08.13, Michael SCHINDLER wrote: > >> Hello Néstor, > >> > >> On 28/08/13, Néstor Espinoza wrote: > >>> I'm trying to draw confidence bands around some model datapoints that I > >>> have and I think the tutorials that I've read so far that paint areas below > >>> curves are not what I'm looking for (e.g., > >>> http://pyx.sourceforge.net/gallery/graphs/integral.html), because in order > >>> to paint areas between curves with those methods (i.e., by the method > >>> suggested in this same mailist here: > >>> http://osdir.com/ml/python.pyx.users/200807/msg00002.html), the trick is > >>> to paint white below the second curve. > >> > >> I am not quite sure to understand what you want to do. If it is just > >> to visualize the confidence of the data, you could use simple error > >> bars (http://pyx.sourceforge.net/examples/graphstyles/errorbar.html). > >> I you want it more fancy with a shaded area, the principle is the same > >> as in the integral example: You take out the paths from the graph, and > >> those can be manipulated (glued together, split, ...). If this latter > >> step makes problems, have a look at the joint example. > >> > >>> Basically in my code I have three vectors, model, model_down and model_up. > >>> The idea is to plot the confidence bands between the curves model_down and > >>> model_up (which represent my confidence bads) and plot model as datapoints > >>> on top: do you have any idea on how to do this? > >> > >> Best, > >> Michael > >> > > > >> import sys, os > >> sys.path.insert(0, os.path.expanduser("~/python/PyX0.12.1")) > >> import pyx > >> print pyx.version.version # need 0.12 for canvas layers > >> from pyx import * > >> > >> N = 30 > >> xs = [10.0 * i/(N1) for i in range(N)] > >> model = [(x3)*(x5)*(x7) for x in xs] > >> model_upp = [y + 10 for y in model] > >> model_low = [y  10 for y in model] > >> > >> g = graph.graphxy(width=10, > >> x=graph.axis.linear(title="$x$"), > >> y=graph.axis.linear(title="$y$")) > >> g.plot(graph.data.values(x=xs, y=model)) > >> # we need another (identical) graph to avoid plotting lines around the confidence area: > >> h = graph.graphxy(width=10, x=graph.axis.linkedaxis(g.axes["x"]), y=graph.axis.linkedaxis(g.axes["y"])) > >> dupp = h.plot(graph.data.values(x=xs, y=model_upp), [graph.style.line()]) > >> dlow = h.plot(graph.data.values(x=xs, y=model_low), [graph.style.line()]) > >> h.doplot() > >> > >> upp = dupp.path.reversed() > >> low = dlow.path > >> x0, y0 = low.atend() > >> x1, y1 = upp.atbegin() > >> connect1 = path.line(x0, y0, x1, y1) > >> > >> area = low << connect1 << upp > >> area.append(path.closepath()) > >> > >> g.layer("filldata").draw(area, [deco.filled([color.gray(0.8)])]) > >> g.writePDFfile("mini") > >> > > > >>  > >> Learn the latestVisual Studio 2012, SharePoint 2013, SQL 2012, more! > >> Discover the easy way to master current and previous Microsoft technologies > >> and advance your career. Get an incredible 1,500+ hours of stepbystep > >> tutorial videos with LearnDevNow. Subscribe today and save! > >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > > > >> _______________________________________________ > >> PyXuser mailing list > >> PyXuser@... > >> https://lists.sourceforge.net/lists/listinfo/pyxuser > > > > <mini2.py> > > Learn the latestVisual Studio 2012, SharePoint 2013, SQL 2012, more! > > Discover the easy way to master current and previous Microsoft technologies > > and advance your career. Get an incredible 1,500+ hours of stepbystep > > tutorial videos with LearnDevNow. Subscribe today and save! > > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk_______________________________________________ > > PyXuser mailing list > > PyXuser@... > > https://lists.sourceforge.net/lists/listinfo/pyxuser > >  > by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim > / \ \ / ) wobsta@..., http://www.wobsta.de/ > / _ \ \/\/ / PyX  High quality PostScript and PDF figures > (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ > >  > Learn the latestVisual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of stepbystep > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > _______________________________________________ > PyXuser mailing list > PyXuser@... > https://lists.sourceforge.net/lists/listinfo/pyxuser 
From: Joerg Lehmann <joergl@us...>  20130830 14:56:12

Hi André, On 30.08.13, André Wobst wrote: > I like the code, and I think it is a useful example. So yes, I agree, it is a good example or gallery contribution. I'm slightly addicted to make it an example. > > Regarding the issue with the decorated path not being stroked nor filled, the solution is rather simple. You can set the lineattr to None to skip stroking. This is a common way to turn off an output in the graph while all work related to generating the output is still in place (thus the path for the line is still generated). > > I favor to keep the error in the decorated path. While I could slightly simplify some graph code, it is still strange to draw a path without actually creating output. In addition, would this "output" still contribute to the bounding box or not?! And last but not least, take the regular user, who might accidentally call draw without a stroke or fill decorator. I prefer to raise an error for that case. This code was written with Jörg and me together (IIRC), and I'm pretty sure we discussed the pro and contra and putted the exception on purpose in the end. Concerning the bounding box handling, you're right. That also immediately came to my mind. Still, I wondered why there is deco.stroked.clear  and why it did not work. But fair enough. Let's use lineattr=None. It is better anyways. I just did not think about it. Attached is a new version. Cheers, Jörg > > Best, > > > André > > > Am 30.08.2013 um 12:00 schrieb Joerg Lehmann: > > > Hi Michael, > > > > First of all, I think this is something that would also be useful for > > the examples or the gallery. > > > > Your code can be simplified a bit though, because the << operator > > (respectively PS/PDF) will add straight lines automatically and the > > closepath is automatically done while filling. > > > > Concerning the second graph: We should find a way that this is not > > necessary. In principle, there already is deco.stroked.clear, which > > prevents stroking of the path. See my attached new version. > > > > However, this currently does not work because PyX will complain about > > the fact that the path is neither stroked nor filled. This is an > > explicit check, we could remove (see line 237 in the latest > > pyx/deco.py). André, what do you think? > > > > Cheers, > > > > Jörg > > > > On 29.08.13, Michael SCHINDLER wrote: > >> Hello Néstor, > >> > >> On 28/08/13, Néstor Espinoza wrote: > >>> I'm trying to draw confidence bands around some model datapoints that I > >>> have and I think the tutorials that I've read so far that paint areas below > >>> curves are not what I'm looking for (e.g., > >>> http://pyx.sourceforge.net/gallery/graphs/integral.html), because in order > >>> to paint areas between curves with those methods (i.e., by the method > >>> suggested in this same mailist here: > >>> http://osdir.com/ml/python.pyx.users/200807/msg00002.html), the trick is > >>> to paint white below the second curve. > >> > >> I am not quite sure to understand what you want to do. If it is just > >> to visualize the confidence of the data, you could use simple error > >> bars (http://pyx.sourceforge.net/examples/graphstyles/errorbar.html). > >> I you want it more fancy with a shaded area, the principle is the same > >> as in the integral example: You take out the paths from the graph, and > >> those can be manipulated (glued together, split, ...). If this latter > >> step makes problems, have a look at the joint example. > >> > >>> Basically in my code I have three vectors, model, model_down and model_up. > >>> The idea is to plot the confidence bands between the curves model_down and > >>> model_up (which represent my confidence bads) and plot model as datapoints > >>> on top: do you have any idea on how to do this? > >> > >> Best, > >> Michael > >> > > > >> import sys, os > >> sys.path.insert(0, os.path.expanduser("~/python/PyX0.12.1")) > >> import pyx > >> print pyx.version.version # need 0.12 for canvas layers > >> from pyx import * > >> > >> N = 30 > >> xs = [10.0 * i/(N1) for i in range(N)] > >> model = [(x3)*(x5)*(x7) for x in xs] > >> model_upp = [y + 10 for y in model] > >> model_low = [y  10 for y in model] > >> > >> g = graph.graphxy(width=10, > >> x=graph.axis.linear(title="$x$"), > >> y=graph.axis.linear(title="$y$")) > >> g.plot(graph.data.values(x=xs, y=model)) > >> # we need another (identical) graph to avoid plotting lines around the confidence area: > >> h = graph.graphxy(width=10, x=graph.axis.linkedaxis(g.axes["x"]), y=graph.axis.linkedaxis(g.axes["y"])) > >> dupp = h.plot(graph.data.values(x=xs, y=model_upp), [graph.style.line()]) > >> dlow = h.plot(graph.data.values(x=xs, y=model_low), [graph.style.line()]) > >> h.doplot() > >> > >> upp = dupp.path.reversed() > >> low = dlow.path > >> x0, y0 = low.atend() > >> x1, y1 = upp.atbegin() > >> connect1 = path.line(x0, y0, x1, y1) > >> > >> area = low << connect1 << upp > >> area.append(path.closepath()) > >> > >> g.layer("filldata").draw(area, [deco.filled([color.gray(0.8)])]) > >> g.writePDFfile("mini") > >> > > > >>  > >> Learn the latestVisual Studio 2012, SharePoint 2013, SQL 2012, more! > >> Discover the easy way to master current and previous Microsoft technologies > >> and advance your career. Get an incredible 1,500+ hours of stepbystep > >> tutorial videos with LearnDevNow. Subscribe today and save! > >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > > > >> _______________________________________________ > >> PyXuser mailing list > >> PyXuser@... > >> https://lists.sourceforge.net/lists/listinfo/pyxuser > > > > <mini2.py> > > Learn the latestVisual Studio 2012, SharePoint 2013, SQL 2012, more! > > Discover the easy way to master current and previous Microsoft technologies > > and advance your career. Get an incredible 1,500+ hours of stepbystep > > tutorial videos with LearnDevNow. Subscribe today and save! > > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk_______________________________________________ > > PyXuser mailing list > > PyXuser@... > > https://lists.sourceforge.net/lists/listinfo/pyxuser > >  > by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim > / \ \ / ) wobsta@..., http://www.wobsta.de/ > / _ \ \/\/ / PyX  High quality PostScript and PDF figures > (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ > >  > Learn the latestVisual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of stepbystep > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > _______________________________________________ > PyXuser mailing list > PyXuser@... > https://lists.sourceforge.net/lists/listinfo/pyxuser 
From: André Wobst <wobsta@us...>  20130830 10:51:56

Hi, I like the code, and I think it is a useful example. So yes, I agree, it is a good example or gallery contribution. I'm slightly addicted to make it an example. Regarding the issue with the decorated path not being stroked nor filled, the solution is rather simple. You can set the lineattr to None to skip stroking. This is a common way to turn off an output in the graph while all work related to generating the output is still in place (thus the path for the line is still generated). I favor to keep the error in the decorated path. While I could slightly simplify some graph code, it is still strange to draw a path without actually creating output. In addition, would this "output" still contribute to the bounding box or not?! And last but not least, take the regular user, who might accidentally call draw without a stroke or fill decorator. I prefer to raise an error for that case. This code was written with Jörg and me together (IIRC), and I'm pretty sure we discussed the pro and contra and putted the exception on purpose in the end. Best, André Am 30.08.2013 um 12:00 schrieb Joerg Lehmann: > Hi Michael, > > First of all, I think this is something that would also be useful for > the examples or the gallery. > > Your code can be simplified a bit though, because the << operator > (respectively PS/PDF) will add straight lines automatically and the > closepath is automatically done while filling. > > Concerning the second graph: We should find a way that this is not > necessary. In principle, there already is deco.stroked.clear, which > prevents stroking of the path. See my attached new version. > > However, this currently does not work because PyX will complain about > the fact that the path is neither stroked nor filled. This is an > explicit check, we could remove (see line 237 in the latest > pyx/deco.py). André, what do you think? > > Cheers, > > Jörg > > On 29.08.13, Michael SCHINDLER wrote: >> Hello Néstor, >> >> On 28/08/13, Néstor Espinoza wrote: >>> I'm trying to draw confidence bands around some model datapoints that I >>> have and I think the tutorials that I've read so far that paint areas below >>> curves are not what I'm looking for (e.g., >>> http://pyx.sourceforge.net/gallery/graphs/integral.html), because in order >>> to paint areas between curves with those methods (i.e., by the method >>> suggested in this same mailist here: >>> http://osdir.com/ml/python.pyx.users/200807/msg00002.html), the trick is >>> to paint white below the second curve. >> >> I am not quite sure to understand what you want to do. If it is just >> to visualize the confidence of the data, you could use simple error >> bars (http://pyx.sourceforge.net/examples/graphstyles/errorbar.html). >> I you want it more fancy with a shaded area, the principle is the same >> as in the integral example: You take out the paths from the graph, and >> those can be manipulated (glued together, split, ...). If this latter >> step makes problems, have a look at the joint example. >> >>> Basically in my code I have three vectors, model, model_down and model_up. >>> The idea is to plot the confidence bands between the curves model_down and >>> model_up (which represent my confidence bads) and plot model as datapoints >>> on top: do you have any idea on how to do this? >> >> Best, >> Michael >> > >> import sys, os >> sys.path.insert(0, os.path.expanduser("~/python/PyX0.12.1")) >> import pyx >> print pyx.version.version # need 0.12 for canvas layers >> from pyx import * >> >> N = 30 >> xs = [10.0 * i/(N1) for i in range(N)] >> model = [(x3)*(x5)*(x7) for x in xs] >> model_upp = [y + 10 for y in model] >> model_low = [y  10 for y in model] >> >> g = graph.graphxy(width=10, >> x=graph.axis.linear(title="$x$"), >> y=graph.axis.linear(title="$y$")) >> g.plot(graph.data.values(x=xs, y=model)) >> # we need another (identical) graph to avoid plotting lines around the confidence area: >> h = graph.graphxy(width=10, x=graph.axis.linkedaxis(g.axes["x"]), y=graph.axis.linkedaxis(g.axes["y"])) >> dupp = h.plot(graph.data.values(x=xs, y=model_upp), [graph.style.line()]) >> dlow = h.plot(graph.data.values(x=xs, y=model_low), [graph.style.line()]) >> h.doplot() >> >> upp = dupp.path.reversed() >> low = dlow.path >> x0, y0 = low.atend() >> x1, y1 = upp.atbegin() >> connect1 = path.line(x0, y0, x1, y1) >> >> area = low << connect1 << upp >> area.append(path.closepath()) >> >> g.layer("filldata").draw(area, [deco.filled([color.gray(0.8)])]) >> g.writePDFfile("mini") >> > >>  >> Learn the latestVisual Studio 2012, SharePoint 2013, SQL 2012, more! >> Discover the easy way to master current and previous Microsoft technologies >> and advance your career. Get an incredible 1,500+ hours of stepbystep >> tutorial videos with LearnDevNow. Subscribe today and save! >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > >> _______________________________________________ >> PyXuser mailing list >> PyXuser@... >> https://lists.sourceforge.net/lists/listinfo/pyxuser > > <mini2.py> > Learn the latestVisual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of stepbystep > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk_______________________________________________ > PyXuser mailing list > PyXuser@... > https://lists.sourceforge.net/lists/listinfo/pyxuser  by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim / \ \ / ) wobsta@..., http://www.wobsta.de/ / _ \ \/\/ / PyX  High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ 
From: Joerg Lehmann <joergl@us...>  20130830 10:00:48

Hi Michael, First of all, I think this is something that would also be useful for the examples or the gallery. Your code can be simplified a bit though, because the << operator (respectively PS/PDF) will add straight lines automatically and the closepath is automatically done while filling. Concerning the second graph: We should find a way that this is not necessary. In principle, there already is deco.stroked.clear, which prevents stroking of the path. See my attached new version. However, this currently does not work because PyX will complain about the fact that the path is neither stroked nor filled. This is an explicit check, we could remove (see line 237 in the latest pyx/deco.py). André, what do you think? Cheers, Jörg On 29.08.13, Michael SCHINDLER wrote: > Hello Néstor, > > On 28/08/13, Néstor Espinoza wrote: > > I'm trying to draw confidence bands around some model datapoints that I > > have and I think the tutorials that I've read so far that paint areas below > > curves are not what I'm looking for (e.g., > > http://pyx.sourceforge.net/gallery/graphs/integral.html), because in order > > to paint areas between curves with those methods (i.e., by the method > > suggested in this same mailist here: > > http://osdir.com/ml/python.pyx.users/200807/msg00002.html), the trick is > > to paint white below the second curve. > > I am not quite sure to understand what you want to do. If it is just > to visualize the confidence of the data, you could use simple error > bars (http://pyx.sourceforge.net/examples/graphstyles/errorbar.html). > I you want it more fancy with a shaded area, the principle is the same > as in the integral example: You take out the paths from the graph, and > those can be manipulated (glued together, split, ...). If this latter > step makes problems, have a look at the joint example. > > > Basically in my code I have three vectors, model, model_down and model_up. > > The idea is to plot the confidence bands between the curves model_down and > > model_up (which represent my confidence bads) and plot model as datapoints > > on top: do you have any idea on how to do this? > > Best, > Michael > > import sys, os > sys.path.insert(0, os.path.expanduser("~/python/PyX0.12.1")) > import pyx > print pyx.version.version # need 0.12 for canvas layers > from pyx import * > > N = 30 > xs = [10.0 * i/(N1) for i in range(N)] > model = [(x3)*(x5)*(x7) for x in xs] > model_upp = [y + 10 for y in model] > model_low = [y  10 for y in model] > > g = graph.graphxy(width=10, > x=graph.axis.linear(title="$x$"), > y=graph.axis.linear(title="$y$")) > g.plot(graph.data.values(x=xs, y=model)) > # we need another (identical) graph to avoid plotting lines around the confidence area: > h = graph.graphxy(width=10, x=graph.axis.linkedaxis(g.axes["x"]), y=graph.axis.linkedaxis(g.axes["y"])) > dupp = h.plot(graph.data.values(x=xs, y=model_upp), [graph.style.line()]) > dlow = h.plot(graph.data.values(x=xs, y=model_low), [graph.style.line()]) > h.doplot() > > upp = dupp.path.reversed() > low = dlow.path > x0, y0 = low.atend() > x1, y1 = upp.atbegin() > connect1 = path.line(x0, y0, x1, y1) > > area = low << connect1 << upp > area.append(path.closepath()) > > g.layer("filldata").draw(area, [deco.filled([color.gray(0.8)])]) > g.writePDFfile("mini") > >  > Learn the latestVisual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of stepbystep > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > _______________________________________________ > PyXuser mailing list > PyXuser@... > https://lists.sourceforge.net/lists/listinfo/pyxuser 
From: Néstor Espinoza <nestor.espinozap@gm...>  20130829 18:07:19

Hi Michael, Your example is just what I needed; thank you very much! 2013/8/29 Michael SCHINDLER <mschindler@...> > Hello Néstor, > > On 28/08/13, Néstor Espinoza wrote: > > I'm trying to draw confidence bands around some model datapoints that I > > have and I think the tutorials that I've read so far that paint areas > below > > curves are not what I'm looking for (e.g., > > http://pyx.sourceforge.net/gallery/graphs/integral.html), because in > order > > to paint areas between curves with those methods (i.e., by the method > > suggested in this same mailist here: > > http://osdir.com/ml/python.pyx.users/200807/msg00002.html), the trick > is > > to paint white below the second curve. > > I am not quite sure to understand what you want to do. If it is just > to visualize the confidence of the data, you could use simple error > bars (http://pyx.sourceforge.net/examples/graphstyles/errorbar.html). > I you want it more fancy with a shaded area, the principle is the same > as in the integral example: You take out the paths from the graph, and > those can be manipulated (glued together, split, ...). If this latter > step makes problems, have a look at the joint example. > > > Basically in my code I have three vectors, model, model_down and > model_up. > > The idea is to plot the confidence bands between the curves model_down > and > > model_up (which represent my confidence bads) and plot model as > datapoints > > on top: do you have any idea on how to do this? > > Best, > Michael > >  Néstor 
From: Michael SCHINDLER <mschindler@us...>  20130829 13:05:29

Hello Néstor, On 28/08/13, Néstor Espinoza wrote: > I'm trying to draw confidence bands around some model datapoints that I > have and I think the tutorials that I've read so far that paint areas below > curves are not what I'm looking for (e.g., > http://pyx.sourceforge.net/gallery/graphs/integral.html), because in order > to paint areas between curves with those methods (i.e., by the method > suggested in this same mailist here: > http://osdir.com/ml/python.pyx.users/200807/msg00002.html), the trick is > to paint white below the second curve. I am not quite sure to understand what you want to do. If it is just to visualize the confidence of the data, you could use simple error bars (http://pyx.sourceforge.net/examples/graphstyles/errorbar.html). I you want it more fancy with a shaded area, the principle is the same as in the integral example: You take out the paths from the graph, and those can be manipulated (glued together, split, ...). If this latter step makes problems, have a look at the joint example. > Basically in my code I have three vectors, model, model_down and model_up. > The idea is to plot the confidence bands between the curves model_down and > model_up (which represent my confidence bads) and plot model as datapoints > on top: do you have any idea on how to do this? Best, Michael 
From: André Wobst <wobsta@us...>  20130829 12:35:56

Hi together, Am 29.08.2013 um 11:38 schrieb Joerg Lehmann: > Hi Mico, > > On 27.08.13, Mico Filós wrote: >> Thanks for the link. Is there an easy way to plot the combined symbols next >> to each other instead of on top of each other? > > As far as I know, that's not easily possible. You can specify > the distance between the text and the "symbol" by the attribute > symbolspace of the graph key, but that does both apply to symbols and > lines. So you might need to resort to implementing your own key, > possibly based on the PyX code. Not so quick with this rather drastic suggestion. There is one simple solution, probably. Haven't tested it, but it should be rather straight forward. You can subclass the symbol style and overwrite the key_pt method. From within the new method, just call the old one with some slight different value for x_pt (or whatever you want). Should work easily. Best, André  by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim / \ \ / ) wobsta@..., http://www.wobsta.de/ / _ \ \/\/ / PyX  High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ 
From: Joerg Lehmann <joergl@us...>  20130829 10:12:26

Hi Mico, On 27.08.13, Mico Filós wrote: > Thanks for the link. Is there an easy way to plot the combined symbols next > to each other instead of on top of each other? As far as I know, that's not easily possible. You can specify the distance between the text and the "symbol" by the attribute symbolspace of the graph key, but that does both apply to symbols and lines. So you might need to resort to implementing your own key, possibly based on the PyX code. Cheers, Jörg 
From: Néstor Espinoza <nestor.espinozap@gm...>  20130828 20:44:54

Hi everyone, I'm trying to draw confidence bands around some model datapoints that I have and I think the tutorials that I've read so far that paint areas below curves are not what I'm looking for (e.g., http://pyx.sourceforge.net/gallery/graphs/integral.html), because in order to paint areas between curves with those methods (i.e., by the method suggested in this same mailist here: http://osdir.com/ml/python.pyx.users/200807/msg00002.html), the trick is to paint white below the second curve. Basically in my code I have three vectors, model, model_down and model_up. The idea is to plot the confidence bands between the curves model_down and model_up (which represent my confidence bads) and plot model as datapoints on top: do you have any idea on how to do this? Cheers!  Néstor 
From: Mico Filós <elmico.filos@gm...>  20130827 14:14:35

Hi Joerg, Thanks for the link. Is there an easy way to plot the combined symbols next to each other instead of on top of each other? When the two datasets are very similar one may get the impression that there is only one dataset, plotted with symbols and lines. Thanks. 