Dear Néstor, The basic concept is rather simple. You have to provide a 1d-graph as the keygraph. It looks like this (untested):
kg = graph.graphx(-5, 5, length=10, direction="horizontal")
g.plot(graph.data.points(d,x=1,y=2,color=3,title = r"$\ln(\chi^2)$"),\
styles = [graph.style.density(gradient=color.gradient.Jet,
keygraph=kg)])
g.insert(kg)
HTH,
André
Am 10.02.2015 um 20:28 schrieb Néstor Espinoza <[email protected]>:
> Hi everyone,
>
> I'm making a density plot with pyx by doing:
>
> g.plot(graph.data.points(d,x=1,y=2,color=3,title = r"$\ln(\chi^2)$"),\
> styles = [graph.style.density(gradient=color.gradient.Jet)])
>
> where "d" is a list where each element has [x,y,z] values. Everything works
> nicely, except for the fact that I need the colorbar to be on top and not on
> the right, as it is put by default; is there any way to do this?
>
> Thanks in advance!
>
> --
> Néstor Espinoza
> PhD Candidate
> Instituto de Astrofísica
> Pontificia Universidad Catolica de Chile
> Phone (office): (+562) 23547052
> Web: http://www.astro.puc.cl/~nespino
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now.
> http://goparallel.sourceforge.net/_______________________________________________
> PyX-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyx-user
--
by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim
/ \ \ / ) [email protected], http://www.wobsta.de/
/ _ \ \/\/ / PyX - High quality PostScript and PDF figures
(_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________ PyX-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyx-user
