|
From: Jody K. <jk...@uv...> - 2013-07-22 19:37:19
|
Hi Guilherme On Jul 22, 2013, at 20:54 PM, Guilherme Araújo Martins <ga...@gl...> wrote: > Basically, I'm using this code... > http://matplotlib.org/examples/pylab_examples/polar_bar.html > > ... but I want to turn it in something like this graphic over here... > http://www.weathersa.co.za/web/images/articles/windrose.png > > You see, where more than one bar pointing the same direction will be put one over the other (the biggest in the base and the smallest at the top). I assumed I had to put some function at this part of the code: > > bars = ax.bar(theta, radii, width=width, bottom=0.0) > > Turning Bottom into a function call somewhat related to the radii (bar size) if both bars have the same theta (angle). Point is I'm having some trouble doing that. I'm totally stuck, actually. For each direction, just plot the largest one first, and the smallest one last and set_alpha = 1. Cheers, Jody -- Jody Klymak http://web.uvic.ca/~jklymak/ |