plotting multiple distributions

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

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=0.5
position = 0.25
bar(xAxis-position, yAxis, width, color='#BBBBBB')

width defines the width of the bar. And position allows you to move the bar along the x-axis ticks (by addition or substracting position to you x-axis vector)

Benoit

···

Anyone has some suggestion?

Thanks!
Giorgio

-------------------------------------------------------------------------
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@lists.sourceforge.net
matplotlib-users List Signup and Options

--
Dr. Benoit Donnet
Université Catholique de Louvain (UCL)
Faculté des Sciences Appliquées - Département d'Ingénierie 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

Thank you Benoit,
but I am actually using the hist command, not the bar command. :frowning:

···

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 <giorgio@...1462...> 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