matplotlib-users

 [Matplotlib-users] plotting multiple distributions From: Giorgio F. Gilestro - 2007-06-20 16:02:45 ```Hi there, I am trying to find a way to improve the plotting of a distribution. I am using the boxplot command and the dist command to plot the spread of a distribution: see first two panel here: http://img75.imageshack.us/img75/5260/distonevy0.png Now, whenever I add data to be plot on the hold axes I face two problems that I don't really know how to solve ( see: http://img232.imageshack.us/img232/2219/disttwopl2.png ) The first one is that I don't manage to get the upper boxplot to be drawn using different colors. The second is that the bars representing the distribution (middle panel) are drawn one in front of the others, hiding in this way the ones in the back. I would love to be able to plot them next to each other as it should be (like this basically: http://img75.imageshack.us/img75/6218/distthreeef4.jpg ) Anyone has some suggestion? Thanks! Giorgio ```
 Re: [Matplotlib-users] {Spam?} plotting multiple distributions From: Benoit Donnet - 2007-06-20 16:31:05 ```Hey, > I would love to be able to plot them next to each > other as it should be (like this basically: > http://img75.imageshack.us/img75/6218/distthreeef4.jpg ) This is quite easy... You should do sth like: width=3D0.5 position =3D 0.25 bar(xAxis-position, yAxis, width, color=3D'#BBBBBB') width defines the width of the bar. And position allows you to move =20 the bar along the x-axis ticks (by addition or substracting position =20 to you x-axis vector) Benoit > Anyone has some suggestion? > > Thanks! > Giorgio > > ----------------------------------------------------------------------=20= > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Dr. Benoit Donnet Universit=E9 Catholique de Louvain (UCL) Facult=E9 des Sciences Appliqu=E9es - D=E9partement d'Ing=E9nierie =20 Informatique (INGI) Place Sainte Barbe, 2 1348 Louvain-la-Neuve Belgium Phone: +32 10 47 87 18 Home page: http://inl.info.ucl.ac.be/donnet ```
 Re: [Matplotlib-users] plotting multiple distributions From: Giorgio F. Gilestro - 2007-06-22 16:19:46 ```Thank you Benoit, but I am actually using the hist command, not the bar command. :( >Hey, >> I would love to be able to plot them next to each >> other as it should be (like this basically: >This is quite easy... > >You should do sth like: >width=3D0.5 >position =3D 0.25 >bar(xAxis-position, yAxis, width, color=3D'#BBBBBB') > >width defines the width of the bar. And position allows you to move =20 >the bar along the x-axis ticks (by addition or substracting position =20 >to you x-axis vector) >Benoit On 6/20/07, Giorgio F. Gilestro wrote: > Hi there, > I am trying to find a way to improve the plotting of a distribution. > I am using the boxplot command and the dist command to plot the spread > of a distribution: see first two panel here: > http://img75.imageshack.us/img75/5260/distonevy0.png > Now, whenever I add data to be plot on the hold axes I face two > problems that I don't really know how to solve ( see: > http://img232.imageshack.us/img232/2219/disttwopl2.png ) > > The first one is that I don't manage to get the upper boxplot to be > drawn using different colors. > The second is that the bars representing the distribution (middle > panel) are drawn one in front of the others, hiding in this way the > ones in the back. I would love to be able to plot them next to each > other as it should be (like this basically: > http://img75.imageshack.us/img75/6218/distthreeef4.jpg ) > > Anyone has some suggestion? > > Thanks! > Giorgio > ```